Liberty Unleashed

Scripting => Script Help => Topic started by: [RU]Kewun on January 02, 2015, 12:47:56 pm

Title: i need help with bind key
Post by: [RU]Kewun on January 02, 2015, 12:47:56 pm
function onScriptLoad()
{
     BindKey( 'H', BINDTYPE_DOWN, "player.RemoveFromVehicle", 123 );
     
     return 1;
}
 
function player.RemoveFromVehicle( somenumber )
{
     Message( "You got bailed out of car " + somenumber );
        player.RemoveFromVehicle();
}
 
i need a bindkey to bail out player of car and this is wrong ? how i can fix this
Title: Re: i need help with bind key
Post by: [RU]Kewun on January 02, 2015, 04:28:51 pm
It doesnt work... doesnt bail me out of car just message
Title: Re: i need help with bind key
Post by: Pipec on January 07, 2015, 08:59:20 pm
Because you forgot http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFunc (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFunc)
( Just add this to any Server Side script)


Anything else will be ignored by the server (by security reasons).