Add fixes

This commit is contained in:
LuaDeldu
2017-11-21 18:21:45 +01:00
parent 061bd7522b
commit b8ef1abd8a
6 changed files with 694 additions and 16 deletions
+5 -4
View File
@@ -81,9 +81,10 @@ end
function OpenShopMenu(accessory)
local _accessory = string.lower(accessory)
local restrict = {}
restrict = { string.lower(accessory) .. '_1', string.lower(accessory) .. '_2' }
restrict = { _accessory .. '_1', _accessory .. '_2' }
TriggerEvent('esx_skin:openRestrictedMenu', function(data, menu)
@@ -123,11 +124,11 @@ function OpenShopMenu(accessory)
TriggerEvent('skinchanger:loadSkin', skin)
end)
if accessory == "Ears" then
ClearPedProp(Player, 2)
ClearPedProp(player, 2)
elseif accessory == "Mask" then
SetPedComponentVariation(player, 1, 0 ,0 ,2)
elseif accessory == "Helmet" then
ClearPedProp(Player, 0)
ClearPedProp(player, 0)
elseif accessory == "Glasses" then
SetPedPropIndex(player, 1, -1, 0, 0)
end
@@ -198,7 +199,7 @@ Citizen.CreateThread(function()
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('store') .. ' ' .. _U(string.lower(k)))
AddTextComponentString(_U('shop') .. ' ' .. _U(string.lower(k)))
EndTextCommandSetBlipName(blip)
end
end