[Include] VCF - Vehicle Component Functions
#1

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(vehicleidlightlightSide)
// Changes the light status 
ToogleLightState(vehicleidlightlightSide)
// Get the current state of one of the vehicle doors 
// Note: Hood and trunk are considered doors in SA-MP 
GetDoorState(vehicleiddoor)
// Changes the state of one of the vehicle doors 
SetDoorState(vehicleiddoordoorState)
// Check that the tire is inflated
IsTireInflated(vehicleidtire)
// Change tire condition 
ToogleTireState(vehicleidtire
Download

GitHub
Reply


Messages In This Thread
VCF - Vehicle Component Functions - by MBJ - 14.06.2018, 23:11
Re: VCF - Vehicle Component Functions - by cuber - 14.06.2018, 23:20
Re: VCF - Vehicle Component Functions - by MBJ - 14.06.2018, 23:26
Re: VCF - Vehicle Component Functions - by Pottus - 15.06.2018, 02:59
Re: VCF - Vehicle Component Functions - by Sasino97 - 15.06.2018, 11:27
Re: VCF - Vehicle Component Functions - by MBJ - 29.09.2018, 23:07
Re: VCF - Vehicle Component Functions - by RogueDrifter - 30.09.2018, 00:04
Re: VCF - Vehicle Component Functions - by NoahF - 02.10.2018, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)