Installation Guide
(1 Player) Trigger to open the terminal to make payments in stores, etc
TriggerEvent('zcmg_payment-terminal:open_oneplayer', amount)TriggerClientEvent('zcmg_payment-terminal:open_oneplayer', source, amount)Variables:
amount: Value to withdraw from the player
(2 Players) Trigger to open terminal to society
Client side:
TriggerEvent('zcmg_payment-terminal:open', target_id, society)local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer == -1 or closestDistance > 3.0 then
ESX.ShowNotification('there is no nearby player')
else
TriggerEvent('zcmg_payment-terminal:open', GetPlayerServerId(closestPlayer), 'mechanic')
endVariables:
target_id: Id of the player who will resever make the payment
society: Society name
Last updated