Why If I lock the doors of a car...[problem]
#1

Why If I lock the doors of a car and if somebody run away and return, or he disconnect and connect again, they can enter to the car, even with the doors locked with this:

GetVehicleParamsEx(vehicleid, engine, lights2, alarm, doors2, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights2, alarm, VEHICLE_PARAMS_ON, bonnet, boot, objective);

It only works when I use the command, but when somebody run away or disconnect and connect, they can enter to the car, it looks like it's not for all players.

Thanks for all, and sorry for my bad english.
Reply
#2

I don't understand why you have lights2 and doors2?
Reply
#3

Because I need 2 variables for my car system.
Reply
#4

So us all the code..
Reply
#5

You have to get vehicle params and lock/unlock the doors also under OnVehicleStreamIn.
Reply
#6

If you had looked into the sa-mp wiki you would have saved another useless topic
Sorry about that but the truth is that every ~5 thread in this section is a waste

SetVehicleParamsForPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)