v1.0
Added mechanic npcs with animations while scrap.
Added Version Checker.
Added a vehicle detecting system of: 2 doors, 4 doors or motorcycle. This modifies the reward.
Added a spawn of a vehicle and dispawn.
Translate into Spanish.
Download GitHub - WackySpring/esx_chatarrero
Put it in the [esx] directory Installation
Import items.sql into your database
Add this to your server.cfg:
start esx_chatarrero
Works perfectly fine with latest es_extended. You just have to change all âxItem.limitâ to âxItem.weightâ in server/main.lua
eg.
if xItem.weight ~= -1 and (xItem.count + 1) > xItem.weight then
TriggerClientEvent('esx:showNotification', source, ('Ya tienes todas las llantas.'))
else
xPlayer.addInventoryItem('llanta',math.random(2, 4))
end
Also, next time donât add Spanish locales in the English file. Rather make a new one called es
EDIT:
Locales['en'] = {
['press_to_chop'] = "Press ~INPUT_CONTEXT~ to scrap the vehicle",
['map_blip'] = "Car Scrapping", -- No sale
['map_blip_shop'] = "Stanley's Car Parts", -- No sale
['no_vehicle'] = "You need to be in a vehicle to be able to scrap",
['open_shop'] = "Press ~INPUT_CONTEXT~ to access the store",
['sold'] = "You have sold ~b~%sx~s~ ~y~%s~s~ for ~g~$%s~s~",
['not_enough'] = 'You don\'t have enough to sell it.',
['shop_prompt'] = 'Press ~INPUT_CONTEXT~ to talk to ~r~Stanley~s~.',
['item'] = '$%s',
['shop_title'] = 'Junk yard',
['cooldown'] = 'You have to wait %s seconds before scrapping another vehicle',
['call'] = 'Someone is busy chopping a vehicle.',-- Se puede utilizar
['911'] = '911 Call',-- Se puede utilizar
['chop'] = 'Car Chopping',-- Se puede utilizar
['not_enough_cops'] = 'There are not enough police officers on duty to do this',
}