client
interactionCHeck
- params:
table:- disallowHandcuffed:
boolean - disallowDead:
boolean - disallowTied:
boolean - disallowCarrying:
boolean - disallowCarried:
boolean - disallowInVehicle:
boolean - onlyLEO:
boolean - allowedJobs:
table:string: 'job'table: { ['job'] = grade }table: { ['job'] = {grade1, grade2} }array: { 'job1', 'job2' }
- otherPlayer:
entity - disallowOtherPlayerInVehicle:
boolean - disallowOtherPlayerTied:
boolean - disallowOtherPlayerHandcuffed:
boolean - disallowOtherPlayerDead:
boolean - disallowOtherPlayerLastStand:
boolean
- disallowHandcuffed:
local canInteract = exports['bc-lib']:interactionCheck({
disallowHandcuffed = true,
disallowDead = true,
disallowTied = true,
disallowCarrying = true,
disallowCarried = true,
disallowInVehicle = true,
onlyLEO = false,
allowedJobs = nil,
otherPlayer = otherPlayer, -- Ped entity
disallowOtherPlayerInVehicle = true,
disallowOtherPlayerTied = true,
disallowOtherPlayerHandcuffed = true,
disallowOtherPlayerDead = true,
disallowOtherPlayerLastStand = true,
})
Returns:
- canInteract:
boolean
PedToPlayerId
- ped:
entity
local playerId = exports['bc-lib']:PedToPlayerId(ped)
Returns:
- playerId:
number
GetOsTime
Pobiera aktualny czas w systemie operacyjnym z serwera
local time = exports['bc-lib']:GetOsTime()
Returns:
- time:
number