GetVehicleParamsCarDoors
#1

Код:
GetVehicleParamsCarDoors(vehicleid, driver, passenger, backleft, backright);
driver, passenger, backleft, backright are returned as -1, but they should be returned as 0 or 1.
Reply
#2

-1 means they have not been set.

-1 = UNSET
0 = CLOSED
1 = OPEN
Reply
#3

I spawned a vehicle and then closed all the doors, but all values were returned as -1. I assume that maybe I should use this & symbol in every value like in the wiki, but when I do I get errors:

Код:
warning 215: expression has no effect
error 029: invalid expression, assumed zero
Reply
#4

SetVehicleParamsCarDoors(VEHICLE_ID, 0,0,0,0); // All Closed.
SetVehicleParamsCarDoors(VEHICLE_ID, 1, 1, 1, 1);// All Opened
SetVehicleParamsCarDoors(VEHICLE_ID, -1, -1, -1, -1);// All unset
Reply
#5

I need GetVehicleParamsCarDoors to return correct values, not -1. I already said that I've tried closing all the doors, but it still returned -1 for all doors.
Reply
#6

Then you are not locking them properly.
Reply
#7

SetVehicleParamsCarDoors(vehicleid, 0, 0, 0, 0);

How is that not closing (I kept saying locked instead of closed) properly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)