local state = false
local font = renderCreateFont("Verdana", 6, 5)
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("render", function()
state = not state
sampAddChatMessage(state and "on" or "off", -1)
end)
while true do wait(0)
if state then
for i, handle in pairs(getAllObjects()) do
local res, ox, oy, oz = getObjectCoordinates(handle)
local px, py, pz = getCharCoordinates(PLAYER_PED)
if getDistanceBetweenCoords3d(px, py, pz, ox, oy, oz) <= 150 and isPointOnScreen(ox, oy, oz, 1.0)...