PDA

View Full Version : PutPlayerInVehicle


Man43
18/07/2018, 01:44 AM
I've making a CreateVehicle * PutPlayerInVehicle but When the vehicle spawned the put me in another area... I just want When I press 4 put my in driver vehicle and same as my location.. not another area...

new Float:x, Float:y, Float:z, Float:a, Ranger1;
Ranger1 = CreateVehicle(599, x, y, z, a, 1, 1, 600000);
LinkVehicleToInterior(Ranger1, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(Ranger1, GetPlayerVirtualWorld(playerid));
PutPlayerInVehicle(playerid, Ranger1, 0);

RedRex
18/07/2018, 01:55 AM
Put that in your code.

GetPlayerPos(playerid, x,y,z);

Man43
18/07/2018, 04:38 AM
Thank you so much it's worked :).