Car lock
#1

Hey guys. I know a server with a locking code that locks vehicles to a faction in a certain way. It locks it to a faction by not even acknowledging that you pressed "F" or "Enter". I'll clarify:

1. You walk up to the car.
2. Press F.
3. Absolutely nothing happens; it's like you never pressed F.

How could i do this?
Reply
#2

Well I'm a begginer so i cant answer this.. But yeah i would like to use the code if someone helps
Reply
#3

SetVehicleParamsEx?

Here`s a link.

Copying the Wiki example, only changed it to DOORS:
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,1,bonnet,boot,objective);
That should work .. You can put it under a command ...
Reply
#4

Quote:
Originally Posted by antonio112
Посмотреть сообщение
SetVehicleParamsEx?

Here`s a link.

Copying the Wiki example, only changed it to DOORS:
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,1,bonnet,boot,objective);
That should work .. You can put it under a command ...
I already know this method. What I want is for NOTHING to happen. No animations are displayed. Like I said, it's like you didn't even press F.
Reply
#5

Well, that`s exactly what it does. Lock the car ( Set VehicleParamsEx( vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet, boot,objective); ), get out of the car and press F. Nothing happens.
Reply
#6

Quote:
Originally Posted by antonio112
Посмотреть сообщение
Well, that`s exactly what it does. Lock the car ( Set VehicleParamsEx( vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet, boot,objective); ), get out of the car and press F. Nothing happens.
No, that makes you walk up to the car and shows the locked car entry animation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)