Vehicle doors
#1

Hey, how do I create a command which uses the syntax /vdoor [vehicleid] [door as number]? The command should open and close selected vehicle doors.
Reply
#2

Well first, you need a command processor or you can use the regular Strcmp method in OnPlayerCommandText.

Once you've created the command, you can use GetVehicleDamageStatus and UpdateVehicleDamageStatus to open or close the vehicle doors.

If you want someone to create this for you, then you're in the wrong place. Try here instead: https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#3

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Well first, you need a command processor or you can use the regular Strcmp method in OnPlayerCommandText.

Once you've created the command, you can use GetVehicleDamageStatus and UpdateVehicleDamageStatus to open or close the vehicle doors.

If you want someone to create this for you, then you're in the wrong place. Try here instead: https://sampforum.blast.hk/showthread.php?tid=447813
I am on phone right now so I can't post my previous code, but I already created a command which opens thr vehicle doors with SetVehicleParamsCarDoors, I assume that would work too?
Reply
#4

Wow I completely forgot that existed. Yeah that would work, and makes things much easier for you. Lol.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)