| Property | Value |
|---|---|
| Native Name | GET_STATE_OF_RAYFIRE_MAP_OBJECT |
| Hash | 0x899BA936634A322E |
| Return Type | int |
| Build | 1207 |
| Parameters | object (Object) |
Description: See SET_STATE_OF_RAYFIRE_MAP_OBJECT to see the different states
Get a destructible object's state. Substract 1 to get the real state. For example, if the object just spawned (state 2), the native will return 3.
Usage
Lua (Direct):
local result = GetStateOfRayfireMapObject(object)
Lua (Hash):
local result = Citizen.InvokeNative(0x899BA936634A322E, object)