🔁Events

pp-bossmenu:server:withdraw

RegisterNetEvent('pp-bossmenu:server:withdraw', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
    amount, -- amount of withdraw [number]
    title, -- title of withdraw [string]
    balanceAfter -- balance after withdraw [number]
))

pp-bossmenu:server:deposit

RegisterNetEvent('pp-bossmenu:server:deposit', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
    amount, -- amount of deposit [number]
    title, -- title of deposit [string]
    balanceAfter -- balance after deposit [number]
))

pp-bossmenu:server:grantLicense

RegisterNetEvent('pp-bossmenu:server:grantLicense', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
    license -- granted license [string]
))

pp-bossmenu:server:revokeLicense

RegisterNetEvent('pp-bossmenu:server:revokeLicense', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
    license -- revoked license [string]
))

pp-bossmenu:server:transfer

RegisterNetEvent('pp-bossmenu:server:transfer', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
    accountNumber, -- target account number [string]
    amount, -- amount of transfer [number]
    title, -- title of transfer [string]
    balanceAfter -- balance after transfer [number]
))

pp-bossmenu:server:changeBadge

RegisterNetEvent('pp-bossmenu:server:transfer', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
    newBadge, -- new badge [string]
    previousBadge -- previous badge [string]
))

pp-bossmenu:server:changeRank

RegisterNetEvent('pp-bossmenu:server:changeRank', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
    newRank, -- new grade [number]
))

pp-bossmenu:server:resetDutyTime

RegisterNetEvent('pp-bossmenu:server:resetDutyTime', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
))

pp-bossmenu:server:changeVehicleOwner

RegisterNetEvent('pp-bossmenu:server:changeVehicleOwner', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
    plate, -- plate of vehicle [string]
    previousOwner, -- previous owner identifier [string]
    newOwner -- new owner identifier [string]
))

pp-bossmenu:server:fireEmployee

RegisterNetEvent('pp-bossmenu:server:fireEmployee', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
))

pp-bossmenu:server:hireEmloyee

RegisterNetEvent('pp-bossmenu:server:hireEmployee', function(
    targetIdentifier, -- employee/target identifier [string]
    sourceIdentifier, -- source identifier [string]
    job, -- player job [string]
    distance -- distance between players [number]
))

pp-bossmenu:server:endDuty

RegisterNetEvent('pp-bossmenu:server:endDuty', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
    time -- time spent on duty (in seconds) [number]
))

pp-bossmenu:server:startDuty

RegisterNetEvent('pp-bossmenu:server:startDuty', function(
    identifier, -- player identifier [string]
    job, -- player job [string]
))