1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-20 19:57:12 +01:00

Update the VC:MP SDK header.

This commit is contained in:
Sandu Liviu Catalin 2018-06-23 16:17:51 +03:00
parent e3a188bd0b
commit 6fa7fdfb10

View File

@ -180,9 +180,15 @@ typedef enum {
vcmpVehicleOptionRadioLocked = 3,
vcmpVehicleOptionGhost = 4,
vcmpVehicleOptionSiren = 5,
vcmpVehicleOptionSingleUse = 6,
forceSizeVcmpVehicleOption = INT32_MAX
} vcmpVehicleOption;
typedef enum {
vcmpPickupOptionSingleUse = 0,
forceSizeVcmpPickupOption = INT32_MAX
} vcmpPickupOption;
typedef struct {
uint32_t structSize;
@ -883,6 +889,24 @@ typedef struct {
/* GetLastError: vcmpErrorNoSuchEntity */
uint8_t (*IsObjectTouchedReportEnabled) (int32_t objectId);
// TODO: MOVE LATER
vcmpError (*GetPlayerModuleList) (int32_t playerId);
/* vcmpErrorNoSuchEntity, vcmpErrorArgumentOutOfBounds */
vcmpError (*SetPickupOption) (int32_t pickupId, vcmpPickupOption option, uint8_t toggle);
/* GetLastError: vcmpErrorNoSuchEntity, vcmpErrorArgumentOutOfBounds */
uint8_t (*GetPickupOption) (int32_t pickupId, vcmpPickupOption option);
/* success */
void (*SetFallTimer) (uint16_t timeRate);
/* success */
uint16_t (*GetFallTimer) (void);
/* vcmpErrorNoSuchEntity */
vcmpError(*SetVehicleLightsData) (int32_t vehicleId, uint32_t lightsData);
/* GetLastError: vcmpErrorNoSuchEntity */
uint32_t(*GetVehicleLightsData) (int32_t vehicleId);
} PluginFuncs;
typedef struct {
@ -945,4 +969,7 @@ typedef struct {
void (*OnEntityPoolChange) (vcmpEntityPool entityType, int32_t entityId, uint8_t isDeleted);
void (*OnServerPerformanceReport) (size_t entryCount, const char** descriptions, uint64_t* times);
} PluginCallbacks;
// TODO: MOVE LATER
void(*OnPlayerModuleList) (int32_t playerId, const char* list);
} PluginCallbacks;