Posts: 525
Threads: 158
Joined: Apr 2012
Reputation:
0
i need something like
if player type /lock so vehicle gets lock. The vehicle he has it last time. But he needs to be outside.
I mean, for example; I'm driving infernus and then i got out of car and type /lock so my vehicle get locked and gets unlocked until i entered in vehicle back or type /unlock.
I don't want vehicle gets locked if player is inside of vehicle. I want player last vehicle gets locked.
Posts: 110
Threads: 8
Joined: Jun 2015
Reputation:
0
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
vehicleid The ID of the vehicle to set the parameters of.
engine Engine status. 0 - Off, 1 - On.
lights Light status. 0 - Off, 1 - On.
alarm Vehicle alarm status. If on, the alarm starts. 0 - Off, 1 - On.
doors Door lock status. 0 - Unlocked, 1 - Locked.
bonnet Bonnet (hood) status. 0 - Closed, 1 - Open.
boot Boot/trunk status. 0 - Closed, 1 - Open.
objective Toggle the objective arrow above the vehicle. 0 - Off, 1 - On.
Posts: 110
Threads: 8
Joined: Jun 2015
Reputation:
0
@sscarface, you are trying to make it more realistic by locking the car when you re outside it but i think IRL we can lock the car when we are inside it so why don't you let it inside and outside.
Posts: 525
Threads: 158
Joined: Apr 2012
Reputation:
0
The problem is you cannot unlocked your vehicle when you are outside of vehicle. I have no problem with locking vehicle while you are in inside of vehicle or outside. But, You cannot unlocked your vehicle if you are outside of vehicle. That's the problem. I want to solve it but don't know how to get Player Last vehicle so. I would be your thankful if you guyz help me. Thank you!