We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegisterServerEvent('esx_vangelico_robbery:gioielli') AddEventHandler('esx_vangelico_robbery:gioielli', function() local xPlayer = ESX.GetPlayerFromId(source) xPlayer.addInventoryItem('jewels', math.random(Config.MinJewels, Config.MaxJewels)) end) RegisterServerEvent('lester:vendita') AddEventHandler('lester:vendita', function() local _source = source local xPlayer = ESX.GetPlayerFromId(_source) local reward = math.floor(Config.PriceForOneJewel * Config.MaxJewelsSell) xPlayer.removeInventoryItem('jewels', Config.MaxJewelsSell) xPlayer.addMoney(reward) end)
Anyone can fire these events without it even checking if they're started a robbery, leading to free money and ruined economies.
The text was updated successfully, but these errors were encountered:
how do we fix
Sorry, something went wrong.
No branches or pull requests
Anyone can fire these events without it even checking if they're started a robbery, leading to free money and ruined economies.
The text was updated successfully, but these errors were encountered: