This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu <variable> <- BindKey(boolean value,hex code,some integer value(keep it 0),0 here too);
Well idk whats that boolean value for so keep true as default one. onScriptLoad() {
I <- BindKey(true, 0x49, 0, 0);
H <- BindKey(true, 0x48,0,0);
P <- BindKey(true, 0x50,0,0);
K <- BindKey(true, 0x4B,0,0);
L <- BindKey(true, 0x4C,0,0); }
Now, to use these keybindings you have onKeyDown function. Syntax: onKeyDown(player,key)
Now you can simply use your keybindings through their respective variables through switch-case or if-else if. function onKeyDown(player,key)
{
if(key==I)
{ if(player.Vehicle!=null) { local v=player.Vehicle; v.RelativeSpeed*=1.3;} }
}
Hope you like this ^_^.