Client

In this section you can find client-sided exports and events to be used/integrated with other resources.

Exports

Is Model ATM

Returns whether the given entity model/hash is an ATM or not.

-- params: entityModel(INT)
exports['t1ger_atmrobbery']:IsModelATM(entityModel)
-- returns boolean(true/false) if given entityModel is an ATM
-- Example:
if IsModelATM(GetEntityModel(entity)) then
    print("entity is an ATM")
end

Returns:

  • Boolean(true/false)

Is Near ATM

Returns whether the player is near an ATM or not.

-- params: entityHandle(INT)
exports['t1ger_atmrobbery']:IsNearATM(entityHandle)
-- returns boolean(true/false) if near ATM or not
-- Example:
if IsNearATM(entityHandle) then
    print("player is near ATM")
end

Returns:

  • Boolean(true/false)

Is Busy ATM

Returns whether the ATM is in use or not.

-- params: entityHandle(INT)
exports['t1ger_atmrobbery']:IsBusyATM(entityHandle)
-- returns boolean(true/false) if ATM is busy or not
-- Example:
if IsBusyATM(entityHandle) then
    print("this atm is currently being used")
else
    print("u can interact with this atm")
end

Returns:

  • Boolean(true/false)

Set Busy ATM

Update the busy state of an ATM

-- params: atmEntity(INT), enable(boolean)
exports['t1ger_atmrobbery']:SetBusyATM(atmEntity, enable)
-- void: updates the busy state of an ATM entity
-- Example:
exports['t1ger_atmrobbery']:SetBusyATM(atmEntity, true)

Events

None

Last updated