Vehicle respawn problem
#1

Hello there, guys, i have a little problem with the ParamsEx, i create some cars to a faccion and i used the ParamsEx

Код:
VehTaxi[15] = AddStaticVehicleEx(438, -1822.5042, 16.9860, 14.9860, 89.9354, -1, -1,180); // SF
GetVehicleParamsEx(VehTaxi[0], engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(VehTaxi[0], 0, 0, 0, 0, 0, 0, 0);
i created a command to engine, lights etc... it works correctly, but when the car respawn, i can't use the commands for the cars, i don't know what i have done bad, or what is the problem... some help? thx
Reply
#2

Show your command man...
Also visit Set Vehicle Params parameters by samp wiki
And Get Vehicle Params parameters by samp wiki
Reply
#3

solved, the problem was that, when the car is respawned , the engine and some params are -1, i put on my command if(engine == 1 || engine == -1) etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)