Liberty Unleashed

Scripting => Script Help => Topic started by: Ahmed Abouelnas on July 17, 2013, 03:26:29 pm

Title: addons
Post by: Ahmed Abouelnas on July 17, 2013, 03:26:29 pm
how to set addons to any vehicle

i tried some scripts like

function onPlayerCommand( player, cmd, text )
{
   if ( cmd == "addon" )
   {
      if ( text )
      {
         local veh = FindVehicle( text.tointeger() );
         if ( veh ) veh.SetAddon( 1 );
      }
   }
}

i found this in http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Vehicles/SetAddon (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Vehicles/SetAddon)

also this script isn't working

i tried to edit it but i fail >:( >:( >:( >:( >:( >:( >:(


any ideas plz help
Title: Re: addons
Post by: Thijn on July 17, 2013, 05:58:45 pm
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.

Also, moved to the right board.
Title: Re: addons
Post by: Ahmed Abouelnas on July 17, 2013, 10:33:39 pm
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.

Also, moved to the right board.
not working..... >:( >:( :( :( :'( :'(
Title: Re: addons
Post by: Ahmed Abouelnas on July 30, 2013, 01:59:12 pm
Solved
Topic Locked