thank you,
but i'm using the client.player and it don't work.
but i'm using the client.player and it don't work.
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 MenuQuoteTypeError: client.player is null
addEventHandler('OnPlayerCommand', (event, client, command, parameters) => {
console.log(`(Command) ${client.name} has used the command '/${command} ${parameters}'.`);
switch(command){
case "v":
case "veh":
case "vehicle":
var veh = gta.createVehicle(parseInt(parameters), client.player.position);
addToWorld(veh);
client.player.warpIntoVehicle(veh, 0);
break;
default:
message("UNK CMD");
break;
}
});