Getting the Id of a vehicle that was just created?
#5

Yeah I got the GetPlayerVehicleID, but if I just created the car (Via a command) I want to know the vehicle ID after its created.

From SAMP Wiki: AddStaticVehicleEx
Return Values:
The vehicle ID of the vehicle created (between 1 and MAX_VEHICLES).
INVALID_VEHICLE_ID (65535) if vehicle was not created (vehicle limit reached or invalid vehicle model ID passed).

How would I get the returned value of the AddStaticVehicleEx?
If this is not possible I may have to go with Aerotactics suggestion.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)