Vehicle problem
#4

Also, by adding '1' to the player's virtual world, the player won't see the vehicle anyway because they will be in a different virtual world to the vehicle itself.

I'm not sure what the use of this code is for, but I'm going to have to make assumptions here.
pawn Код:
tutbike = CreateVehicle(481, 2256.7861, -1263.1980, 23.4870, 273.2590, 3, 3, -1);
    SetVehicleVirtualWorld(tutbike, GetPlayerVirtualWorld(playerid));
    GetVehicleParamsEx(tutbike, iEngine, iLights, iAlarm, iDoors, iBonnet, iBoot, iObjective);
    SetVehicleParamsEx(tutbike, iEngine, iLights, iAlarm, 1, iBonnet, iBoot, iObjective);
I'm also not sure whether the vehicle is meant to be created at "2256.7861, -1263.1980, 23.4870" or at the player's position. I'm sure that's something that you're capable of working out for yourself though.

Helpful Functions:
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/CreateVehicle
Reply


Messages In This Thread
Vehicle problem - by cnoopers - 10.07.2014, 15:50
Re: Vehicle problem - by AMouldyLemon - 10.07.2014, 15:53
Re: Vehicle problem - by Konstantinos - 10.07.2014, 15:59
Re: Vehicle problem - by Threshold - 10.07.2014, 16:06
Re: Vehicle problem - by Konstantinos - 10.07.2014, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)