mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-26 04:02:20 +00:00
Lua Vehicle functions (CLuaFunctionDefinitions)
This commit is contained in:
parent
feeff01fe1
commit
5fded36cee
File diff suppressed because it is too large
Load Diff
@ -207,109 +207,107 @@ public:
|
|||||||
// static bool SetWeaponProperty ( lua_State* pLuaVM, void* pUserData );
|
// static bool SetWeaponProperty ( lua_State* pLuaVM, void* pUserData );
|
||||||
|
|
||||||
// Weapon give/take functions
|
// Weapon give/take functions
|
||||||
// static int GiveWeapon ( lua_State* luaVM );
|
// static int GiveWeapon ( lua_State* pLuaVM );
|
||||||
// static int TakeWeapon ( lua_State* luaVM );
|
// static int TakeWeapon ( lua_State* pLuaVM );
|
||||||
// static int TakeAllWeapons ( lua_State* luaVM );
|
// static int TakeAllWeapons ( lua_State* pLuaVM );
|
||||||
// static int SetWeaponAmmo ( lua_State* luaVM );
|
// static int SetWeaponAmmo ( lua_State* pLuaVM );
|
||||||
// static int GetSlotFromWeapon ( lua_State* luaVM );
|
// static int GetSlotFromWeapon ( lua_State* pLuaVM );
|
||||||
|
|
||||||
// Vehicle create/destroy functions
|
// Vehicle create/destroy functions
|
||||||
static void* CreateVehicle ( lua_State* luaVM, int model, float fX, float fY, float fZ, float fRX, float fRY, float fRZ, string numberplate, bool direction = false, int variant1 = 255, int variant2 = 255 );
|
static void* CreateVehicle ( lua_State* pLuaVM, int model, float fX, float fY, float fZ, float fRX, float fRY, float fRZ, string numberplate, bool direction = false, int variant1 = 255, int variant2 = 255 );
|
||||||
|
|
||||||
// Vehicle get functions
|
// Vehicle get functions
|
||||||
// static int GetVehicleType ( lua_State* luaVM );
|
static string GetVehicleType ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleVariant ( lua_State* luaVM );
|
static bool GetVehicleVariant ( lua_State* pLuaVM, void* pUserData, unsigned char& ucVariant, unsigned char& ucVariant2 );
|
||||||
// static int GetVehicleColor ( lua_State* luaVM );
|
static bool GetVehicleColor ( lua_State* pLuaVM, void* pUserData, unsigned char& ucR1, unsigned char& ucG1, unsigned char& ucB1, unsigned char& ucR2, unsigned char& ucG2, unsigned char& ucB2, unsigned char& ucR3, unsigned char& ucG3, unsigned char& ucB3, unsigned char& ucR4, unsigned char& ucG4, unsigned char& ucB4 );
|
||||||
// static int GetVehicleModelFromName ( lua_State* luaVM );
|
static unsigned short GetVehicleModelFromName ( lua_State* pLuaVM, const char* szName );
|
||||||
// static int GetVehicleLandingGearDown ( lua_State* luaVM );
|
static bool GetVehicleLandingGearDown ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleMaxPassengers ( lua_State* luaVM );
|
static int GetVehicleMaxPassengers ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleName ( lua_State* luaVM );
|
static string GetVehicleName ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleNameFromModel ( lua_State* luaVM );
|
static string GetVehicleNameFromModel ( lua_State* pLuaVM, void* pUserData, unsigned short usModel );
|
||||||
// static int GetVehicleOccupant ( lua_State* luaVM );
|
static void* GetVehicleOccupant ( lua_State* pLuaVM, void* pUserData, unsigned int uiSeat );
|
||||||
// static int GetVehicleOccupants ( lua_State* luaVM );
|
static CLuaArguments* GetVehicleOccupants ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleController ( lua_State* luaVM );
|
static void* GetVehicleController ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleRotation ( lua_State* luaVM );
|
static bool GetVehicleSirensOn ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleSirensOn ( lua_State* luaVM );
|
static bool GetVehicleTurnVelocity ( lua_State* pLuaVM, void* pUserData, float &fX, float& fY, float& fZ );
|
||||||
// static int GetVehicleTurnVelocity ( lua_State* luaVM );
|
static bool GetVehicleTurretPosition ( lua_State* pLuaVM, void* pUserData, float &fX, float& fY );
|
||||||
// static int GetVehicleTurretPosition ( lua_State* luaVM );
|
static bool IsVehicleLocked ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleLocked ( lua_State* luaVM );
|
static CLuaArguments* GetVehiclesOfType ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehiclesOfType ( lua_State* luaVM );
|
static unsigned short GetVehicleUpgradeOnSlot ( lua_State* pLuaVM, void* pUserData, unsigned char ucSlot );
|
||||||
// static int GetVehicleUpgradeOnSlot ( lua_State* luaVM );
|
static CLuaArguments* GetVehicleUpgrades ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleUpgrades ( lua_State* luaVM );
|
static string GetVehicleUpgradeSlotName ( lua_State* pLuaVM, unsigned char ucSlot );
|
||||||
// static int GetVehicleUpgradeSlotName ( lua_State* luaVM );
|
static string GetVehicleUpgradeSlotName ( lua_State* pLuaVM, unsigned short usUpgrade );
|
||||||
// static int GetVehicleCompatibleUpgrades ( lua_State* luaVM );
|
static CLuaArguments* GetVehicleCompatibleUpgrades ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleDoorState ( lua_State* luaVM );
|
static unsigned char GetVehicleDoorState ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor );
|
||||||
// static int GetVehicleWheelStates ( lua_State* luaVM );
|
static bool GetVehicleWheelStates ( lua_State* pLuaVM, void* pUserData, unsigned char& ucFrontLeft, unsigned char& ucRearLeft, unsigned char& ucFrontRight, unsigned char& ucRearRight );
|
||||||
// static int GetVehicleLightState ( lua_State* luaVM );
|
static unsigned char GetVehicleLightState ( lua_State* pLuaVM, void* pUserData, unsigned char ucLight );
|
||||||
// static int GetVehiclePanelState ( lua_State* luaVM );
|
static unsigned char GetVehiclePanelState ( lua_State* pLuaVM, void* pUserData, unsigned char ucPanel );
|
||||||
// static int GetVehicleOverrideLights ( lua_State* luaVM );
|
static unsigned char GetVehicleOverrideLights ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleTowedByVehicle ( lua_State* luaVM );
|
static void* GetVehicleTowedByVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleTowingVehicle ( lua_State* luaVM );
|
static void* GetVehicleTowingVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehiclePaintjob ( lua_State* luaVM );
|
static unsigned char GetVehiclePaintjob ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehiclePlateText ( lua_State* luaVM );
|
static const char* GetVehiclePlateText ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleDamageProof ( lua_State* luaVM );
|
static bool IsVehicleDamageProof ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleFuelTankExplodable ( lua_State* luaVM );
|
static bool IsVehicleFuelTankExplodable ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleFrozen ( lua_State* luaVM );
|
static bool IsVehicleFrozen ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleOnGround ( lua_State* luaVM );
|
static bool IsVehicleOnGround ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleEngineState ( lua_State* luaVM );
|
static bool GetVehicleEngineState ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsTrainDerailed ( lua_State* luaVM );
|
static bool IsTrainDerailed ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsTrainDerailable ( lua_State* luaVM );
|
static bool IsTrainDerailable ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetTrainDirection ( lua_State* luaVM );
|
static bool GetTrainDirection ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetTrainSpeed ( lua_State* luaVM );
|
static float GetTrainSpeed ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int IsVehicleBlown ( lua_State* luaVM );
|
static bool IsVehicleBlown ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int GetVehicleHeadLightColor ( lua_State* luaVM );
|
static bool GetVehicleHeadLightColor ( lua_State* pLuaVM, void* pUserData, unsigned char& ucRed, unsigned char& ucGreen, unsigned char& ucBlue );
|
||||||
// static int GetVehicleDoorOpenRatio ( lua_State* luaVM );
|
static float GetVehicleDoorOpenRatio ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor );
|
||||||
|
static bool IsVehicleTaxiLightOn ( lua_State* pLuaVM, void* pUserData );
|
||||||
|
|
||||||
// Vehicle set functions
|
// Vehicle set functions
|
||||||
// static int FixVehicle ( lua_State* luaVM );
|
static bool FixVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int BlowVehicle ( lua_State* luaVM );
|
static bool BlowVehicle ( lua_State* pLuaVM, void* pUserData, bool bExplode );
|
||||||
// static int SetVehicleRotation ( lua_State* luaVM );
|
static bool SetVehicleTurnVelocity ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ );
|
||||||
// static int SetVehicleTurnVelocity ( lua_State* luaVM );
|
static bool SetVehicleColor ( lua_State* pLuaVM, void* pUserData, unsigned char& ucRed, unsigned char& ucGreen, unsigned char& ucBlue, unsigned char& ucRed2, unsigned char& ucGreen2, unsigned char& ucBlue2, unsigned char& ucRed3, unsigned char& ucGreen3, unsigned char& ucBlue3, unsigned char& ucRed4, unsigned char& ucGreen4, unsigned char& ucBlue4 );
|
||||||
// static int SetVehicleColor ( lua_State* luaVM );
|
static bool SetVehicleLandingGearDown ( lua_State* pLuaVM, void* pUserData, bool bLandingGearDown );
|
||||||
// static int SetVehicleLandingGearDown ( lua_State* luaVM );
|
static bool SetVehicleLocked ( lua_State* pLuaVM, void* pUserData, bool bLocked );
|
||||||
// static int SetVehicleLocked ( lua_State* luaVM );
|
static bool SetVehicleDoorsUndamageable ( lua_State* pLuaVM, void* pUserData, bool bDoorsUndamageable );
|
||||||
// static int SetVehicleModel ( lua_State* luaVM );
|
static bool SetVehicleSirensOn ( lua_State* pLuaVM, void* pUserData, bool bSirensOn );
|
||||||
// static int SetVehicleDoorsUndamageable ( lua_State* luaVM );
|
static bool SetVehicleTaxiLightOn ( lua_State* pLuaVM, void* pUserData, bool bTaxiLightState );
|
||||||
// static int SetVehicleSirensOn ( lua_State* luaVM );
|
static bool AddVehicleUpgrade ( lua_State* pLuaVM, void* pUserData, unsigned short usUpgrade );
|
||||||
// static int SetVehicleTaxiLightOn ( lua_State* luaVM );
|
static bool RemoveVehicleUpgrade ( lua_State* pLuaVM, void* pUserData, unsigned short usUpgrade );
|
||||||
// static int IsVehicleTaxiLightOn ( lua_State* luaVM );
|
static bool SetVehicleDoorState ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor, unsigned char ucState );
|
||||||
// static int AddVehicleUpgrade ( lua_State* luaVM );
|
static bool SetVehicleWheelStates ( lua_State* pLuaVM, void* pUserData, int iFrontLeft, int iRearLeft = -1, int iFrontRight = -1, int iRearRight = -1 );
|
||||||
// static int RemoveVehicleUpgrade ( lua_State* luaVM );
|
static bool SetVehicleLightState ( lua_State* pLuaVM, void* pUserData, unsigned char ucLight, unsigned char ucState );
|
||||||
// static int SetVehicleDoorState ( lua_State* luaVM );
|
static bool SetVehiclePanelState ( lua_State* pLuaVM, void* pUserData, unsigned char ucPanel, unsigned char ucState );
|
||||||
// static int SetVehicleWheelStates ( lua_State* luaVM );
|
static bool SetVehicleIdleRespawnDelay ( lua_State* pLuaVM, void* pUserData, unsigned long ulTime );
|
||||||
// static int SetVehicleLightState ( lua_State* luaVM );
|
static bool SetVehicleRespawnDelay ( lua_State* pLuaVM, void* pUserData, unsigned long ulTime );
|
||||||
// static int SetVehiclePanelState ( lua_State* luaVM );
|
static bool SetVehicleRespawnPosition ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ, float fRX, float fRY, float fRZ );
|
||||||
// static int SetVehicleIdleRespawnDelay ( lua_State* luaVM );
|
static bool ToggleVehicleRespawn ( lua_State* pLuaVM, void* pUserData, bool bRespawn );
|
||||||
// static int SetVehicleRespawnDelay ( lua_State* luaVM );
|
static bool ResetVehicleExplosionTime ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int SetVehicleRespawnPosition ( lua_State* luaVM );
|
static bool ResetVehicleIdleTime ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int ToggleVehicleRespawn ( lua_State* luaVM );
|
static bool SpawnVehicle ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ, float fRX, float fRY, float fRZ );
|
||||||
// static int ResetVehicleExplosionTime ( lua_State* luaVM );
|
static bool RespawnVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int ResetVehicleIdleTime ( lua_State* luaVM );
|
static bool SetVehicleOverrideLights ( lua_State* pLuaVM, void* pUserData, unsigned char ucLights );
|
||||||
// static int SpawnVehicle ( lua_State* luaVM );
|
static bool AttachTrailerToVehicle ( lua_State* pLuaVM, void* pUserData, void* pTrailer );
|
||||||
// static int RespawnVehicle ( lua_State* luaVM );
|
static bool DetachTrailerFromVehicle ( lua_State* pLuaVM, void* pUserData, void* pTrailer = NULL );
|
||||||
// static int SetVehicleOverrideLights ( lua_State* luaVM );
|
static bool SetVehicleEngineState ( lua_State* pLuaVM, void* pUserData, bool bState );
|
||||||
// static int AttachTrailerToVehicle ( lua_State* luaVM );
|
static bool SetVehicleDirtLevel ( lua_State* pLuaVM, void* pUserData, float fDirtLevel );
|
||||||
// static int DetachTrailerFromVehicle ( lua_State* luaVM );
|
static bool SetVehicleDamageProof ( lua_State* pLuaVM, void* pUserData, bool bDamageProof );
|
||||||
// static int SetVehicleEngineState ( lua_State* luaVM );
|
static bool SetVehiclePaintjob ( lua_State* pLuaVM, void* pUserData, unsigned char ucPaintjob );
|
||||||
// static int SetVehicleDirtLevel ( lua_State* luaVM );
|
static bool SetVehicleFuelTankExplodable ( lua_State* pLuaVM, void* pUserData, bool bExplodable );
|
||||||
// static int SetVehicleDamageProof ( lua_State* luaVM );
|
static bool SetVehicleFrozen ( lua_State* pLuaVM, void* pUserData, bool bFrozen );
|
||||||
// static int SetVehiclePaintjob ( lua_State* luaVM );
|
static bool SetTrainDerailed ( lua_State* pLuaVM, void* pUserData, bool bDerailed );
|
||||||
// static int SetVehicleFuelTankExplodable ( lua_State* luaVM );
|
static bool SetTrainDerailable ( lua_State* pLuaVM, void* pUserData, bool bDerailable );
|
||||||
// static int SetVehicleFrozen ( lua_State* luaVM );
|
static bool SetTrainDirection ( lua_State* pLuaVM, void* pUserData, bool bDireciton );
|
||||||
// static int SetTrainDerailed ( lua_State* luaVM );
|
static bool SetTrainSpeed ( lua_State* pLuaVM, void* pUserData, float fSpeed );
|
||||||
// static int SetTrainDerailable ( lua_State* luaVM );
|
static bool SetVehicleHeadLightColor ( lua_State* pLuaVM, void* pUserData, unsigned char ucRed, unsigned char ucGreen, unsigned char ucBlue );
|
||||||
// static int SetTrainDirection ( lua_State* luaVM );
|
static bool SetVehicleTurretPosition ( lua_State* pLuaVM, void* pUserData, float fHorizontal, float fVertical );
|
||||||
// static int SetTrainSpeed ( lua_State* luaVM );
|
static bool SetVehicleDoorOpenRatio ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor, float fRatio, unsigned long ulTime = 0 );
|
||||||
// static int SetVehicleHeadLightColor ( lua_State* luaVM );
|
static bool SetVehicleVariant ( lua_State* pLuaVM, void* pUserData, unsigned char ucVariant, unsigned char ucVariant2 );
|
||||||
// static int SetVehicleTurretPosition ( lua_State* luaVM );
|
static bool GiveVehicleSirens ( lua_State* pLuaVM, void* pUserData, unsigned char ucSirenType, unsigned char ucSirenCount, bool bFlag360 = false, bool bCheckLosFlag = true, bool bUseRandomiserFlag = true, bool bSilentFlag = false );
|
||||||
// static int SetVehicleDoorOpenRatio ( lua_State* luaVM );
|
static bool RemoveVehicleSirens ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int SetVehicleVariant ( lua_State* luaVM );
|
static bool SetVehicleSirens ( lua_State* pLuaVM, void* pUserData, unsigned char ucSirenID, float fX, float fY, float fZ, float fRed, float fGreen, float fBlue, float fAlpha = 255, float fMinAlpha = 0.0 );
|
||||||
// static int GiveVehicleSirens ( lua_State* luaVM );
|
// static bool GetVehicleSirens ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int RemoveVehicleSirens ( lua_State* luaVM );
|
// static bool GetVehicleSirenParams ( lua_State* pLuaVM, void* pUserData );
|
||||||
// static int SetVehicleSirens ( lua_State* luaVM );
|
static bool SetVehiclePlateText ( lua_State* pLuaVM, void* pUserData, const char* szName );
|
||||||
// static int GetVehicleSirens ( lua_State* luaVM );
|
|
||||||
// static int GetVehicleSirenParams ( lua_State* luaVM );
|
|
||||||
// static int SetVehiclePlateText ( lua_State* luaVM );
|
|
||||||
|
|
||||||
// Marker create/destroy functions
|
// Marker create/destroy functions
|
||||||
// static int CreateMarker ( lua_State* luaVM );
|
// static int CreateMarker ( lua_State* luaVM );
|
||||||
|
Loading…
Reference in New Issue
Block a user