Skip to content

Commit

Permalink
Display speedometer at resource start (#478)
Browse files Browse the repository at this point in the history
Update client.lua
  • Loading branch information
Nico8340 committed May 10, 2024
1 parent 118d58e commit 31a5ac4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions [gameplay]/speedometer/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ function integrityCheck()
end
end
addEventHandler("onClientPlayerWasted", localPlayer, integrityCheck)

addEventHandler("onClientResourceStart", resourceRoot,
function()
if isPedInVehicle(localPlayer) then
enterHandler(getPedOccupiedVehicle(localPlayer))
end
end
)

0 comments on commit 31a5ac4

Please sign in to comment.