Question About Car Trunk
#1

Hello Guys .. I want make a cmd to open the Trunk Of a Car .. Also I want know How I can lock a car I mean the players can't open the car and thank you
Reply
#2

To lock a car use SetVehicleParamsForPlayer.

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Reply
#3

For the trunk: https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus & check the door status link.
Reply
#4

well for the trunk just hammer it (just try to script smthing)
and than repair it with this :P
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
Reply
#5

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
For the trunk: https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus & check the door status link.
I've been trying to do the exact thing, I don't get all this mumbo-jumbo about bytes though. Do I need a binary code converter for this code to even work? I honestly have no clue why "001" converts to "16909060".
Reply
#6

No Guys i think you don't understand me .. I mean like this : [IMG=/imageshack/img213/8378/samp037q.png][/IMG]
Reply
#7

Well, I have a problem with it too. Let's see. There are four bytes for each front door, hood and trunk. The first bit should be set to "1" so door opens. I updated door damage status with "16843009" that means "00000001 00000001 00000001 00000001" in binary. Hood and front doors success opens, but trunk stays closed. What's wrong?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)