Skip to content

Commit

Permalink
Merge pull request #35 from paruthepro/patch-1
Browse files Browse the repository at this point in the history
Fixed chat spam
  • Loading branch information
DevX32 authored Nov 12, 2024
2 parents f2831ff + 46cd2e3 commit 1351984
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions data/zones.lua
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ AddEventHandler('onResourceStop', function(resource)
end
end)

RegisterCommand('+openAppearance', function()
if not currentZone then return end
TriggerEvent('bl_appearance:client:useZone', currentZone.type)
end, false)

RegisterKeyMapping('+openAppearance', 'Open Appearance', 'keyboard', key)
lib.addKeybind({
name = 'Open Appearance',
description = 'Opens Appearance Menu.',
defaultKey = key,
onPressed = function(self)
if not currentZone then return end
TriggerEvent('bl_appearance:client:useZone', currentZone.type)
end
})

0 comments on commit 1351984

Please sign in to comment.