Author Topic: addons  (Read 2593 times)

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
addons
« on: July 17, 2013, 04: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

also this script isn't working

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


any ideas plz help
« Last Edit: July 17, 2013, 04:31:14 pm by abulnass »

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: addons
« Reply #1 on: July 17, 2013, 06:58:45 pm »
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.

Also, moved to the right board.

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
Re: addons
« Reply #2 on: July 17, 2013, 11:33:39 pm »
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.

Also, moved to the right board.
not working..... >:( >:( :( :( :'( :'(

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
Re: addons
« Reply #3 on: July 30, 2013, 02:59:12 pm »
Solved
Topic Locked

 

© Liberty Unleashed Team.