{"hash":"0x4039B485","ns":"CFX","name":"GET_RESOURCE_STATE","slug":"GET_RESOURCE_STATE","official":true,"named":true,"luaName":"GetResourceState","game":"cfx","apiset":"shared","returnType":"char*","params":[{"name":"resourceName","type":"char*","description":"The name of the resource."}],"returnsDescription":"The resource state. One of `\"missing\", \"started\", \"starting\", \"stopped\", \"stopping\", \"uninitialized\" or \"unknown\"`.","summary":"Returns the current state of the specified resource.","descriptions":[{"source":"cfx","format":"md","body":"Returns the current state of the specified resource."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_STATE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_STATE.md","snippets":{"lua":"local retval = GetResourceState(resourceName)","luaInvoke":"local retval = Citizen.InvokeNative(0x4039b485, resourceName, Citizen.ResultAsString())","js":"const retval = GetResourceState(resourceName);","jsInvoke":"const retval = Citizen.invokeNative('0x4039b485', resourceName, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0x4039b485, resourceName);","notes":[]}}