Liberty Unleashed
Scripting => Script Help => Topic started 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
-
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.
Also, moved to the right board.
-
Try doing SetAddon( VEHADDON_HOSE ) instead of hardcoded 1.
Also, moved to the right board.
not working..... >:( >:( :( :( :'( :'(
-
Solved
Topic Locked