WAS_EVENT_CANCELED
Returns whether or not the currently executing event was canceled.
Signature
BOOL WAS_EVENT_CANCELED();Returns BOOL — A boolean.
Description
Returns whether or not the currently executing event was canceled.
Usage
local retval = WasEventCanceled()
-- always works, by hash
local retval = Citizen.InvokeNative(0x58382a19, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = WasEventCanceled();
// by hash
const retval = Citizen.invokeNative('0x58382a19', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x58382a19);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.