Skip to content

Commit 109a5c6

Browse files
committed
small fixes
1 parent d908418 commit 109a5c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[core]/es_extended/client/compat.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
ESX.Game.GetShapeTestResultSync = xLib.Raycast.GetShapeTestResult
44
ESX.Game.RaycastScreen = xLib.Raycast.FromScreen
55
ESX.Game.StartRaycasting = xLib.Raycast.Start
6+
---@param raycast table The raycast object returned from ESX.Game.StartRaycasting
67
ESX.Game.StopRaycasting = function(raycast)
78
if raycast and raycast.active then
89
raycast:Stop()
910
end
1011
end
12+
---@param raycast table The raycast object returned from ESX.Game.StartRaycasting
1113
ESX.Game.IsRaycastActive = function(raycast)
1214
if raycast and raycast.active then
1315
return raycast:IsActive()
1416
end
1517
return false
1618
end
19+
---@param raycast table The raycast object returned from ESX.Game.StartRaycasting
1720
ESX.Game.GetRaycastResult = function(raycast)
1821
if raycast and raycast.active then
1922
return raycast.result

[core]/esx_lib/imports/raycast/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ end
6060

6161
-- Stop raycasting
6262
function 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

0 commit comments

Comments
 (0)