Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Liberty Unleashed
Scripting
»
Script Help
»
addons
Home
Help
Search
Calendar
Media
Login
Register
« previous
next »
Print
Pages: [
1
]
Author
Topic: addons (Read 2593 times)
Ahmed Abouelnas
Newbie
Posts: 39
Karma: +2/-11
Ahmed Abouelnas
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
»
Logged
Thijn
Tester
Sr. Member
Posts: 531
Karma: +27/-16
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.
Logged
Ahmed Abouelnas
Newbie
Posts: 39
Karma: +2/-11
Ahmed Abouelnas
Re: addons
«
Reply #2 on:
July 17, 2013, 11:33:39 pm »
Quote from: Thijn on July 17, 2013, 06:58:45 pm
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.
Also, moved to the right board.
not working.....
Logged
Ahmed Abouelnas
Newbie
Posts: 39
Karma: +2/-11
Ahmed Abouelnas
Re: addons
«
Reply #3 on:
July 30, 2013, 02:59:12 pm »
Solved
Topic Locked
Logged
Print
Pages: [
1
]
« previous
next »
Liberty Unleashed
»
Scripting
»
Script Help
»
addons
Loading...