initial push

This commit is contained in:
Mustache Dom committed 2025-01-27 23:56:13 -08:00
1 parent 4cacab3c7c
commit 36131995d4
24 files changed
+336 -206

No files matched your search

+5
View File
@@ -112,6 +112,10 @@ local Target = {
}
function checkLoc(source, event, num)
print('Checking Location')
print('Event: ' .. event)
print('Num: ' .. num)
local ped = source
local pos = GetPlayerPed(ped)
local coord = GetEntityCoords(pos)
@@ -123,6 +127,7 @@ function checkLoc(source, event, num)
end
local dist = #(coord - loc)
if dist < 2.5 then
print(GetName(source) .. ' Triggered the table ' .. event .. ' Within The Correct Distance')
Log(GetName(source) .. ' Triggered the table ' .. event .. ' Within The Correct Distance', 'locations')
return true
else