14.06.2018, 23:11
(
Last edited by MBJ; 29/09/2018 at 11:03 PM.
)
Introduction
This include was made in order to facilitate the manipulation of the state of the vehicle components in the use of the GetVehicleDamageStatus, because the function uses bits to manipulate the states and as this is not a well-known subject in Pawn, I decided to develop this include to do the "heavy" work
BUGS
The include is still in a BETA version and may contain bugs, in the tests that I did, there were none, but there may be some that I have not seen in the tests, if any, et me know as soon as possible to update.
Functions
Include now has the following functions:
PHP Code:
// Check this light is on or off
IsLightEnabled(vehicleid, light, lightSide)
// Changes the light status
ToogleLightState(vehicleid, light, lightSide)
// Get the current state of one of the vehicle doors
// Note: Hood and trunk are considered doors in SA-MP
GetDoorState(vehicleid, door)
// Changes the state of one of the vehicle doors
SetDoorState(vehicleid, door, doorState)
// Check that the tire is inflated
IsTireInflated(vehicleid, tire)
// Change tire condition
ToogleTireState(vehicleid, tire)
Download
GitHub