function mycoords()
local positionX, positionY, positionZ = getCharCoordinates(PLAYER_PED)
local str = positionX .. ", " .. positionY .. ", " .. positionZ
local res = isCharInArea2d(PLAYER_PED, 1507.7397460938, 1485.4504394531, -1566.0440673828, -1553.9219970703, false) print(res)
if res then
sampSendChat('/help')
end
end
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("che", mycoords)
while true do wait(0)
end
end