mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-22 02:02:23 +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 );
|
||||
|
||||
// Weapon give/take functions
|
||||
// static int GiveWeapon ( lua_State* luaVM );
|
||||
// static int TakeWeapon ( lua_State* luaVM );
|
||||
// static int TakeAllWeapons ( lua_State* luaVM );
|
||||
// static int SetWeaponAmmo ( lua_State* luaVM );
|
||||
// static int GetSlotFromWeapon ( lua_State* luaVM );
|
||||
// static int GiveWeapon ( lua_State* pLuaVM );
|
||||
// static int TakeWeapon ( lua_State* pLuaVM );
|
||||
// static int TakeAllWeapons ( lua_State* pLuaVM );
|
||||
// static int SetWeaponAmmo ( lua_State* pLuaVM );
|
||||
// static int GetSlotFromWeapon ( lua_State* pLuaVM );
|
||||
|
||||
// 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
|
||||
// static int GetVehicleType ( lua_State* luaVM );
|
||||
// static int GetVehicleVariant ( lua_State* luaVM );
|
||||
// static int GetVehicleColor ( lua_State* luaVM );
|
||||
// static int GetVehicleModelFromName ( lua_State* luaVM );
|
||||
// static int GetVehicleLandingGearDown ( lua_State* luaVM );
|
||||
// static int GetVehicleMaxPassengers ( lua_State* luaVM );
|
||||
// static int GetVehicleName ( lua_State* luaVM );
|
||||
// static int GetVehicleNameFromModel ( lua_State* luaVM );
|
||||
// static int GetVehicleOccupant ( lua_State* luaVM );
|
||||
// static int GetVehicleOccupants ( lua_State* luaVM );
|
||||
// static int GetVehicleController ( lua_State* luaVM );
|
||||
// static int GetVehicleRotation ( lua_State* luaVM );
|
||||
// static int GetVehicleSirensOn ( lua_State* luaVM );
|
||||
// static int GetVehicleTurnVelocity ( lua_State* luaVM );
|
||||
// static int GetVehicleTurretPosition ( lua_State* luaVM );
|
||||
// static int IsVehicleLocked ( lua_State* luaVM );
|
||||
// static int GetVehiclesOfType ( lua_State* luaVM );
|
||||
// static int GetVehicleUpgradeOnSlot ( lua_State* luaVM );
|
||||
// static int GetVehicleUpgrades ( lua_State* luaVM );
|
||||
// static int GetVehicleUpgradeSlotName ( lua_State* luaVM );
|
||||
// static int GetVehicleCompatibleUpgrades ( lua_State* luaVM );
|
||||
// static int GetVehicleDoorState ( lua_State* luaVM );
|
||||
// static int GetVehicleWheelStates ( lua_State* luaVM );
|
||||
// static int GetVehicleLightState ( lua_State* luaVM );
|
||||
// static int GetVehiclePanelState ( lua_State* luaVM );
|
||||
// static int GetVehicleOverrideLights ( lua_State* luaVM );
|
||||
// static int GetVehicleTowedByVehicle ( lua_State* luaVM );
|
||||
// static int GetVehicleTowingVehicle ( lua_State* luaVM );
|
||||
// static int GetVehiclePaintjob ( lua_State* luaVM );
|
||||
// static int GetVehiclePlateText ( lua_State* luaVM );
|
||||
// static int IsVehicleDamageProof ( lua_State* luaVM );
|
||||
// static int IsVehicleFuelTankExplodable ( lua_State* luaVM );
|
||||
// static int IsVehicleFrozen ( lua_State* luaVM );
|
||||
// static int IsVehicleOnGround ( lua_State* luaVM );
|
||||
// static int GetVehicleEngineState ( lua_State* luaVM );
|
||||
// static int IsTrainDerailed ( lua_State* luaVM );
|
||||
// static int IsTrainDerailable ( lua_State* luaVM );
|
||||
// static int GetTrainDirection ( lua_State* luaVM );
|
||||
// static int GetTrainSpeed ( lua_State* luaVM );
|
||||
// static int IsVehicleBlown ( lua_State* luaVM );
|
||||
// static int GetVehicleHeadLightColor ( lua_State* luaVM );
|
||||
// static int GetVehicleDoorOpenRatio ( lua_State* luaVM );
|
||||
static string GetVehicleType ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetVehicleVariant ( lua_State* pLuaVM, void* pUserData, unsigned char& ucVariant, unsigned char& ucVariant2 );
|
||||
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 unsigned short GetVehicleModelFromName ( lua_State* pLuaVM, const char* szName );
|
||||
static bool GetVehicleLandingGearDown ( lua_State* pLuaVM, void* pUserData );
|
||||
static int GetVehicleMaxPassengers ( lua_State* pLuaVM, void* pUserData );
|
||||
static string GetVehicleName ( lua_State* pLuaVM, void* pUserData );
|
||||
static string GetVehicleNameFromModel ( lua_State* pLuaVM, void* pUserData, unsigned short usModel );
|
||||
static void* GetVehicleOccupant ( lua_State* pLuaVM, void* pUserData, unsigned int uiSeat );
|
||||
static CLuaArguments* GetVehicleOccupants ( lua_State* pLuaVM, void* pUserData );
|
||||
static void* GetVehicleController ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetVehicleSirensOn ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetVehicleTurnVelocity ( lua_State* pLuaVM, void* pUserData, float &fX, float& fY, float& fZ );
|
||||
static bool GetVehicleTurretPosition ( lua_State* pLuaVM, void* pUserData, float &fX, float& fY );
|
||||
static bool IsVehicleLocked ( lua_State* pLuaVM, void* pUserData );
|
||||
static CLuaArguments* GetVehiclesOfType ( lua_State* pLuaVM, void* pUserData );
|
||||
static unsigned short GetVehicleUpgradeOnSlot ( lua_State* pLuaVM, void* pUserData, unsigned char ucSlot );
|
||||
static CLuaArguments* GetVehicleUpgrades ( lua_State* pLuaVM, void* pUserData );
|
||||
static string GetVehicleUpgradeSlotName ( lua_State* pLuaVM, unsigned char ucSlot );
|
||||
static string GetVehicleUpgradeSlotName ( lua_State* pLuaVM, unsigned short usUpgrade );
|
||||
static CLuaArguments* GetVehicleCompatibleUpgrades ( lua_State* pLuaVM, void* pUserData );
|
||||
static unsigned char GetVehicleDoorState ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor );
|
||||
static bool GetVehicleWheelStates ( lua_State* pLuaVM, void* pUserData, unsigned char& ucFrontLeft, unsigned char& ucRearLeft, unsigned char& ucFrontRight, unsigned char& ucRearRight );
|
||||
static unsigned char GetVehicleLightState ( lua_State* pLuaVM, void* pUserData, unsigned char ucLight );
|
||||
static unsigned char GetVehiclePanelState ( lua_State* pLuaVM, void* pUserData, unsigned char ucPanel );
|
||||
static unsigned char GetVehicleOverrideLights ( lua_State* pLuaVM, void* pUserData );
|
||||
static void* GetVehicleTowedByVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||
static void* GetVehicleTowingVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||
static unsigned char GetVehiclePaintjob ( lua_State* pLuaVM, void* pUserData );
|
||||
static const char* GetVehiclePlateText ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsVehicleDamageProof ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsVehicleFuelTankExplodable ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsVehicleFrozen ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsVehicleOnGround ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetVehicleEngineState ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsTrainDerailed ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsTrainDerailable ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetTrainDirection ( lua_State* pLuaVM, void* pUserData );
|
||||
static float GetTrainSpeed ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool IsVehicleBlown ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool GetVehicleHeadLightColor ( lua_State* pLuaVM, void* pUserData, unsigned char& ucRed, unsigned char& ucGreen, unsigned char& ucBlue );
|
||||
static float GetVehicleDoorOpenRatio ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor );
|
||||
static bool IsVehicleTaxiLightOn ( lua_State* pLuaVM, void* pUserData );
|
||||
|
||||
// Vehicle set functions
|
||||
// static int FixVehicle ( lua_State* luaVM );
|
||||
// static int BlowVehicle ( lua_State* luaVM );
|
||||
// static int SetVehicleRotation ( lua_State* luaVM );
|
||||
// static int SetVehicleTurnVelocity ( lua_State* luaVM );
|
||||
// static int SetVehicleColor ( lua_State* luaVM );
|
||||
// static int SetVehicleLandingGearDown ( lua_State* luaVM );
|
||||
// static int SetVehicleLocked ( lua_State* luaVM );
|
||||
// static int SetVehicleModel ( lua_State* luaVM );
|
||||
// static int SetVehicleDoorsUndamageable ( lua_State* luaVM );
|
||||
// static int SetVehicleSirensOn ( lua_State* luaVM );
|
||||
// static int SetVehicleTaxiLightOn ( lua_State* luaVM );
|
||||
// static int IsVehicleTaxiLightOn ( lua_State* luaVM );
|
||||
// static int AddVehicleUpgrade ( lua_State* luaVM );
|
||||
// static int RemoveVehicleUpgrade ( lua_State* luaVM );
|
||||
// static int SetVehicleDoorState ( lua_State* luaVM );
|
||||
// static int SetVehicleWheelStates ( lua_State* luaVM );
|
||||
// static int SetVehicleLightState ( lua_State* luaVM );
|
||||
// static int SetVehiclePanelState ( lua_State* luaVM );
|
||||
// static int SetVehicleIdleRespawnDelay ( lua_State* luaVM );
|
||||
// static int SetVehicleRespawnDelay ( lua_State* luaVM );
|
||||
// static int SetVehicleRespawnPosition ( lua_State* luaVM );
|
||||
// static int ToggleVehicleRespawn ( lua_State* luaVM );
|
||||
// static int ResetVehicleExplosionTime ( lua_State* luaVM );
|
||||
// static int ResetVehicleIdleTime ( lua_State* luaVM );
|
||||
// static int SpawnVehicle ( lua_State* luaVM );
|
||||
// static int RespawnVehicle ( lua_State* luaVM );
|
||||
// static int SetVehicleOverrideLights ( lua_State* luaVM );
|
||||
// static int AttachTrailerToVehicle ( lua_State* luaVM );
|
||||
// static int DetachTrailerFromVehicle ( lua_State* luaVM );
|
||||
// static int SetVehicleEngineState ( lua_State* luaVM );
|
||||
// static int SetVehicleDirtLevel ( lua_State* luaVM );
|
||||
// static int SetVehicleDamageProof ( lua_State* luaVM );
|
||||
// static int SetVehiclePaintjob ( lua_State* luaVM );
|
||||
// static int SetVehicleFuelTankExplodable ( lua_State* luaVM );
|
||||
// static int SetVehicleFrozen ( lua_State* luaVM );
|
||||
// static int SetTrainDerailed ( lua_State* luaVM );
|
||||
// static int SetTrainDerailable ( lua_State* luaVM );
|
||||
// static int SetTrainDirection ( lua_State* luaVM );
|
||||
// static int SetTrainSpeed ( lua_State* luaVM );
|
||||
// static int SetVehicleHeadLightColor ( lua_State* luaVM );
|
||||
// static int SetVehicleTurretPosition ( lua_State* luaVM );
|
||||
// static int SetVehicleDoorOpenRatio ( lua_State* luaVM );
|
||||
// static int SetVehicleVariant ( lua_State* luaVM );
|
||||
// static int GiveVehicleSirens ( lua_State* luaVM );
|
||||
// static int RemoveVehicleSirens ( lua_State* luaVM );
|
||||
// static int SetVehicleSirens ( lua_State* luaVM );
|
||||
// static int GetVehicleSirens ( lua_State* luaVM );
|
||||
// static int GetVehicleSirenParams ( lua_State* luaVM );
|
||||
// static int SetVehiclePlateText ( lua_State* luaVM );
|
||||
static bool FixVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool BlowVehicle ( lua_State* pLuaVM, void* pUserData, bool bExplode );
|
||||
static bool SetVehicleTurnVelocity ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ );
|
||||
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 bool SetVehicleLandingGearDown ( lua_State* pLuaVM, void* pUserData, bool bLandingGearDown );
|
||||
static bool SetVehicleLocked ( lua_State* pLuaVM, void* pUserData, bool bLocked );
|
||||
static bool SetVehicleDoorsUndamageable ( lua_State* pLuaVM, void* pUserData, bool bDoorsUndamageable );
|
||||
static bool SetVehicleSirensOn ( lua_State* pLuaVM, void* pUserData, bool bSirensOn );
|
||||
static bool SetVehicleTaxiLightOn ( lua_State* pLuaVM, void* pUserData, bool bTaxiLightState );
|
||||
static bool AddVehicleUpgrade ( lua_State* pLuaVM, void* pUserData, unsigned short usUpgrade );
|
||||
static bool RemoveVehicleUpgrade ( lua_State* pLuaVM, void* pUserData, unsigned short usUpgrade );
|
||||
static bool SetVehicleDoorState ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor, unsigned char ucState );
|
||||
static bool SetVehicleWheelStates ( lua_State* pLuaVM, void* pUserData, int iFrontLeft, int iRearLeft = -1, int iFrontRight = -1, int iRearRight = -1 );
|
||||
static bool SetVehicleLightState ( lua_State* pLuaVM, void* pUserData, unsigned char ucLight, unsigned char ucState );
|
||||
static bool SetVehiclePanelState ( lua_State* pLuaVM, void* pUserData, unsigned char ucPanel, unsigned char ucState );
|
||||
static bool SetVehicleIdleRespawnDelay ( lua_State* pLuaVM, void* pUserData, unsigned long ulTime );
|
||||
static bool SetVehicleRespawnDelay ( lua_State* pLuaVM, void* pUserData, unsigned long ulTime );
|
||||
static bool SetVehicleRespawnPosition ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ, float fRX, float fRY, float fRZ );
|
||||
static bool ToggleVehicleRespawn ( lua_State* pLuaVM, void* pUserData, bool bRespawn );
|
||||
static bool ResetVehicleExplosionTime ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool ResetVehicleIdleTime ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool SpawnVehicle ( lua_State* pLuaVM, void* pUserData, float fX, float fY, float fZ, float fRX, float fRY, float fRZ );
|
||||
static bool RespawnVehicle ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool SetVehicleOverrideLights ( lua_State* pLuaVM, void* pUserData, unsigned char ucLights );
|
||||
static bool AttachTrailerToVehicle ( lua_State* pLuaVM, void* pUserData, void* pTrailer );
|
||||
static bool DetachTrailerFromVehicle ( lua_State* pLuaVM, void* pUserData, void* pTrailer = NULL );
|
||||
static bool SetVehicleEngineState ( lua_State* pLuaVM, void* pUserData, bool bState );
|
||||
static bool SetVehicleDirtLevel ( lua_State* pLuaVM, void* pUserData, float fDirtLevel );
|
||||
static bool SetVehicleDamageProof ( lua_State* pLuaVM, void* pUserData, bool bDamageProof );
|
||||
static bool SetVehiclePaintjob ( lua_State* pLuaVM, void* pUserData, unsigned char ucPaintjob );
|
||||
static bool SetVehicleFuelTankExplodable ( lua_State* pLuaVM, void* pUserData, bool bExplodable );
|
||||
static bool SetVehicleFrozen ( lua_State* pLuaVM, void* pUserData, bool bFrozen );
|
||||
static bool SetTrainDerailed ( lua_State* pLuaVM, void* pUserData, bool bDerailed );
|
||||
static bool SetTrainDerailable ( lua_State* pLuaVM, void* pUserData, bool bDerailable );
|
||||
static bool SetTrainDirection ( lua_State* pLuaVM, void* pUserData, bool bDireciton );
|
||||
static bool SetTrainSpeed ( lua_State* pLuaVM, void* pUserData, float fSpeed );
|
||||
static bool SetVehicleHeadLightColor ( lua_State* pLuaVM, void* pUserData, unsigned char ucRed, unsigned char ucGreen, unsigned char ucBlue );
|
||||
static bool SetVehicleTurretPosition ( lua_State* pLuaVM, void* pUserData, float fHorizontal, float fVertical );
|
||||
static bool SetVehicleDoorOpenRatio ( lua_State* pLuaVM, void* pUserData, unsigned char ucDoor, float fRatio, unsigned long ulTime = 0 );
|
||||
static bool SetVehicleVariant ( lua_State* pLuaVM, void* pUserData, unsigned char ucVariant, unsigned char ucVariant2 );
|
||||
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 bool RemoveVehicleSirens ( lua_State* pLuaVM, void* pUserData );
|
||||
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 bool GetVehicleSirens ( lua_State* pLuaVM, void* pUserData );
|
||||
// static bool GetVehicleSirenParams ( lua_State* pLuaVM, void* pUserData );
|
||||
static bool SetVehiclePlateText ( lua_State* pLuaVM, void* pUserData, const char* szName );
|
||||
|
||||
// Marker create/destroy functions
|
||||
// static int CreateMarker ( lua_State* luaVM );
|
||||
|
Loading…
Reference in New Issue
Block a user