Vehicles in skinselection
#1

pawn Код:
SetPlayerPos(playerid, 88.795204, -261.606628, 3.796797);
            SetPlayerFacingAngle(playerid, 52.051254);
            SetPlayerCameraLookAt(playerid, 88.795204, -261.606628, 3.796797);
            SetPlayerCameraPos(playerid, 88.795204 + (5 * floatsin(-52.051254, degrees)), -261.606628 + (5 * floatcos(-52.051254, degrees)), 3.796797);
            SetPlayerVirtualWorld(playerid, 125);
            new truck;
            truck = AddStaticVehicle(514,91.8581,-263.8345,2.1703,52.9407,54,1);
            SetVehicleVirtualWorld(truck, GetPlayerVirtualWorld(playerid));
I'm really tired so I probaly missed something but i'll post this anyways to read when i wake up, help is greatly appreciated
I cant see the truck which the skin is supposed to be standing on
Reply
#2

Did you double check the coordinates? Try replacing it with CreateVehicle because AddStaticVehicle only works inside the OnGameModeInit callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)