condense locales

This commit is contained in:
Mustache Dom committed 2026-01-23 03:41:19 -07:00
1 parent fc8a623067
commit c752baffda
22 files changed
+228 -131

No files matched your search

+11 -2
View File
@@ -31,8 +31,17 @@ GlobalState.MDDrugsRecipes = Recipes
RegisterServerEvent('md-drugs:server:buyWhippitItem', function(loc, item,amount)
local src = source
if not checkDistance(src, Locations.Whippit[loc].loc, 3.0, 'md-drugs:server:buyWhippitItem') then return end
if not Recipes.Whippit.shop[item] then return end
if timeOut(src, 'md-drugs:server:buyWhippitItem') then return end
if not checkDistance(src, Locations.Whippit[loc].loc, 3.0, 'md-drugs:server:buyWhippitItem') then
return
end
if not Recipes.Whippit.shop[item] then
Bridge.Prints.Warn(Bridge.Language.Locale('Whippit.invalidItemWarn', Bridge.Framework.GetPlayerIdentifier(src), item))
return
end
local price = Recipes.Whippit.shop[item] * amount
if not Bridge.Framework.RemoveAccountBalance(src, 'cash', price, 'whippit-shop') then
return Bridge.Notify.SendNotify(src, Bridge.Language.Locale('Whippit.notEnoughMoney', price), 'error')