💻Exports
Get Player State
--- This function checks if a player is in a paint ball game
--- @return boolean - Returns true if the player is in paintball game, false otherwise
-- Client-side: Check if the player is in a property block
exports['l2s-paintball']:IsPlayerInPB()
--- This function checks if a player is in a paint ball game
--- @param source integer - The identifier of the player to check
--- @return boolean - Returns true if the player is in paintball game, false otherwise
-- Server-side: Check if the player is in a property block
exports['l2s-paintball']:IsPlayerInPB(source)
Client:
if exports['l2s-paintball']:IsPlayerInPB() then
QBCore.Functions.Notify('You are in paintball match', 'error')
return
end
Server:
if exports['l2s-paintball']:IsPlayerInPB(source) then
TriggerClientEvent('QBCore:Notify', source ,'You are in paintball match', 'error' )
return
end
Last updated