Skip to content

Commit

Permalink
fix(client/esx): update Weapons module ref
Browse files Browse the repository at this point in the history
Resolves #1261.
  • Loading branch information
thelindat committed Apr 17, 2023
1 parent a32c947 commit 11e912f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/bridge/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ if not func or err then
return error(err)
end

func(client.onLogout, client.weapon)
func(client.onLogout)
4 changes: 3 additions & 1 deletion modules/bridge/esx/client.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local onLogout, Weapon = ...
local onLogout = ...

local ESX = setmetatable({}, {
__index = function(self, index)
Expand Down Expand Up @@ -36,6 +36,8 @@ AddEventHandler('esx:setPlayerData', function(key, value)
OnPlayerData(key, value)
end)

local Weapon = require 'modules.weapon.client'

RegisterNetEvent('esx_policejob:handcuff', function()
PlayerData.cuffed = not PlayerData.cuffed
LocalPlayer.state:set('invBusy', PlayerData.cuffed, false)
Expand Down

0 comments on commit 11e912f

Please sign in to comment.