cleanup (use unit tests)
This commit is contained in:
1 parent
801db83402
commit
d1da9710da
2 files changed
+1
-41
No files matched your search
@@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
-- Objects
|
-- Objects
|
||||||
Ids = Ids or Require("lib/utility/shared/ids.lua")
|
Ids = Ids or Require("lib/utility/shared/ids.lua")
|
||||||
|
|
||||||
|
|
||||||
local Entities = {}
|
local Entities = {}
|
||||||
EntityRelay = {}
|
EntityRelay = {}
|
||||||
|
|
||||||
@@ -45,21 +43,4 @@ function EntityRelay.LoadModel(model)
|
|||||||
return Utility.LoadModel(model)
|
return Utility.LoadModel(model)
|
||||||
end
|
end
|
||||||
|
|
||||||
return EntityRelay
|
return EntityRelay
|
||||||
|
|
||||||
|
|
||||||
-- RegisterCommand("entityobj", function()
|
|
||||||
-- local entity = Bridge.Object.Create({
|
|
||||||
-- id = "something", -- optional
|
|
||||||
-- model = "prop_beach_fire",
|
|
||||||
-- coords = GetEntityCoords(PlayerPedId()),
|
|
||||||
-- rotation = vector3(0.0, 0.0, 0.0),
|
|
||||||
-- })
|
|
||||||
-- Bridge.Object.SetOnSpawn("something", function(self, coords, rotation)
|
|
||||||
-- print("Entity spawned")
|
|
||||||
-- end)
|
|
||||||
|
|
||||||
-- Bridge.Object.SetOnRemove("something", function(self, entity)
|
|
||||||
-- print("Entity removed")
|
|
||||||
-- end)
|
|
||||||
-- end)
|
|
||||||
@@ -242,25 +242,4 @@ function Point.GetAll()
|
|||||||
return ActivePoints
|
return ActivePoints
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Usage example for checking nearby points
|
|
||||||
-- --
|
|
||||||
-- ▀█▀ █▄█ █ ▄▀▀ █ ▄▀▀ █▀ █ █ ▄▀▀ █▄▀ █ █▄ █ ▄▀ █▄█ ▄▀▄ ▀█▀ █▀▄ ▄▀▄ █ █▄ █ ▀█▀ ▄▀▀ █▀ ▄▀▄ █▀▄ ▄▀▀ █▀▄ ▄▀▄ █ █ █ ██▀ ▀▄▀
|
|
||||||
-- █ █ █ █ ▄█▀ █ ▄█▀ █▀ ▀▄█ ▀▄▄ █ █ █ █ ▀█ ▀▄█ █ █ ▀▄▀ █ ██ █▀ ▀▄▀ █ █ ▀█ █ ▄█▀ █▀ ▀▄▀ █▀▄ ▀▄▄ █▀▄ ▀▄▀ ▀▄▀▄▀ █▄▄ █▄▄ █
|
|
||||||
--[[
|
|
||||||
Point.Register("point1", vector3(100, 100, 30), 5.0,
|
|
||||||
function(point)
|
|
||||||
print("Entered point1")
|
|
||||||
end,
|
|
||||||
function(point)
|
|
||||||
print("Exited point1")
|
|
||||||
end,
|
|
||||||
function(nearbyPoints)
|
|
||||||
print("Point1 has nearby points:")
|
|
||||||
for id, point in pairs(nearbyPoints) do
|
|
||||||
print("- " .. id .. " at distance: " .. #(point.coords - ActivePoints["point1"].coords))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
|
|
||||||
return Point
|
return Point
|
||||||
Reference in new issue
Block a user