forked from Simnation/Main
ed
This commit is contained in:
parent
6a6c44143c
commit
e50a457657
31 changed files with 1135 additions and 764 deletions
|
@ -0,0 +1,12 @@
|
|||
function canShow(targetPed)
|
||||
local isEntityVisible = IsEntityVisible(targetPed)
|
||||
local getEntityAlpha = GetEntityAlpha(targetPed)
|
||||
local pedIsVisible = isEntityVisible and getEntityAlpha == 255
|
||||
debug("pedIsVisible: " .. tostring(pedIsVisible), "ped:" .. targetPed, "isEntityVisible: " .. tostring(isEntityVisible), "getEntityAlpha: " .. getEntityAlpha)
|
||||
return pedIsVisible
|
||||
end
|
||||
|
||||
function debug(...)
|
||||
if not config.debug then return end
|
||||
print(...)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue