File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 33ESX .Game .GetShapeTestResultSync = xLib .Raycast .GetShapeTestResult
44ESX .Game .RaycastScreen = xLib .Raycast .FromScreen
55ESX .Game .StartRaycasting = xLib .Raycast .Start
6+ --- @param raycast table The raycast object returned from ESX.Game.StartRaycasting
67ESX .Game .StopRaycasting = function (raycast )
78 if raycast and raycast .active then
89 raycast :Stop ()
910 end
1011end
12+ --- @param raycast table The raycast object returned from ESX.Game.StartRaycasting
1113ESX .Game .IsRaycastActive = function (raycast )
1214 if raycast and raycast .active then
1315 return raycast :IsActive ()
1416 end
1517 return false
1618end
19+ --- @param raycast table The raycast object returned from ESX.Game.StartRaycasting
1720ESX .Game .GetRaycastResult = function (raycast )
1821 if raycast and raycast .active then
1922 return raycast .result
Original file line number Diff line number Diff line change 6060
6161-- Stop raycasting
6262function xLib .Raycast :Stop ()
63- if not self and not self .active then print ( ' already stopped ' ) return end
63+ if not self and not self .active then return end
6464 self .active = false
6565 if self ._thread then
6666 self ._thread = nil
You can’t perform that action at this time.
0 commit comments