[Release] esx_ownedcarthief

I know that. no player on the server can at the moment its just show the Location[en] error

Ok, please look in --resource.lua if there is a insert like ‘locales/de.lua’, in server and client scripts.

Second please cheack your locales/en.lua if there standing “Locales[‘en’] = {”

Last check in your config.lua “Config.Locale = 'en”’ --Set lang (fr-en-br) you have that all?

ya i have it changed in both places.

**resource**
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

description 'esx_ownedcarthief'

version '1.0.1'

server_scripts {
  '@async/async.lua',
  '@mysql-async/lib/MySQL.lua',
  '@es_extended/locale.lua',
  'locales/en.lua',
  'config.lua',
  'server/main.lua'
}

client_scripts {
  '@es_extended/locale.lua',
  'locales/en.lua',
  'config.lua',
  'client/main.lua'
}

dependencies {
  'es_extended',
  'esx_vehicleshop'
}

Config.lua
Config = {}

– GENERAL SETTING
Config.SuccesChance = 60 --How many % of chance to unlock a car. (0-100)
Config.OnlyPlayerCar = truennnnnnnnnnnnnnnnnnnnnnnnnnnnnnn --Set false if you want to picklock work on npc car (true-false)
Config.Locale = ‘en’ --Set lang (fr-en-br)

– POLICE
Config.PoliceNumberRequired = 0 --Set how many cops is need to try stole a car. (0-64)
Config.AlertPolice = true --Turn to false if you don’t want cops is called on car alarm start for player car. (true-false)
Config.CallCopsChance = 60 --How many % of chance for the car alarm start AND call cops. (0-100)
Config.BlipTime = 40 --Set how many time a blip keep flash on map. (1-200)

– PAWNSHOP SETTING
Config.SellCarBlackMoney = true --Set this to true if you want player recive blackmoney instead of money (true-false)
Config.WaitTime = 1 --Set how many time in minutes before another vehicle can be sell to the pawnshop (0-9999…)
Config.ExpireVehicle = 7 --Set how many days the player have to buy back ther vehicle before all can buy it
Config.ResellPercentage = 10 --Percent of original car price player get from selling car (1-100)
Config.RebuyPercentage = 15 --Percent of original car price player need to buy back the car (1-100)
Config.NpcCarPrice = 100 --Set the sell price for npc car (1-9999…)
Config.PawnShopBLJob = { --Here you can add job can’t sell car at PawnShop
{ JobName = “mecano”, },
{ JobName = “ambulance”, }
}

Thank for taking the time to look

He’s asking you to look in en.lua and make sure you have the Locales[‘en’] array properly formed. It’s likely going to be a problem apostrophe or missing bracket that’s causing your issue.

oh sorry. ya i looked at it.

Locales['en'] = {
  ['911']                 = '~g~Central~s~ : A vehicle alarm has been activated at these coordinates.',
  ['alarm1']              = '%s$ - basic alarm system',
  ['alarm2']              = '%s$ - alarm system connect to the central',
  ['alarm3']              = '%s$ - high tech alarm system with GPS',
  ['alarminterface']      = '%s$ - Alarm system interface',
  ['alarm1_install']      = 'The ~g~basic alarm system~s~ has been ~r~installed~s~',
  ['alarm2_install']      = 'The ~g~alarm system connect to the central~s~ has been ~r~installed~s~',
  ['alarm3_install']      = 'The ~g~high tech alarm system with GPS~s~ has been ~r~installed~s~',
  ['alarm_max_lvl']       = 'The ~g~alarm system~s~ is already at the maximum',
  ['alarm_not_install']   = 'The ~g~alarm system~s~ can not be installed',
  ['checkvehicle']        = 'A moment that we check what we have in stock',
  ['hammerwirecutter']    = '%s$ - hammer & wire cutter',
  ['illegalusedetect']    = '~r~UNAUTHORIZED USE DETECTED',
  ['inspect']             = '~b~You watch if the key is in touch.',
  ['jammer']              = '%s$ - signal jammer (Illegal)',
  ['jammeruse']           = 'Scrambled signal',
  ['max_item']            = 'You are already carrying enough on yourself.',
  ['memoryformating']     = 'The interface software has been erased.',
  ['no_cops']             = 'where are the cop?',
  ['not_enough_money']    = 'you do not have enough money',
  ['not_work_with_npc']   = 'this vehicle belongs to no one',
  ['pawn_shop_blip']      = 'Pawn Shop',
  ['pawn_shop_menu']      = 'Press ~r~E~s~ to open Pawn Shop menu',
  ['black_garage_menu']   = 'Press ~r~E~s~ to open Illegal Garage menu',
  ['pawnshop_buyitem']    = 'buy equipment',
  ['pawnshop_menu_title'] = 'Pawn Shop',
  ['black_menu_title']    = 'Illegal Garage',
  ['pawnshop_rebuy']      = 'buy a vehicle',
  ['blackgarage_resell']  = 'sell a stolen vehicle',
  ['please_wait']         = 'Trying to open the door will take you ~b~%s minutes %s secondes~s~',
  ['resellcar']           = 'buy a stolen vehicle',
  ['rucops']              = 'Checking of your identity..........',
  ['stolen_car']          = 'Vehicle STOLEN',
  ['truecop']             = 'Use allow. Shutdown the alarm',
  ['unlockingtool']       = '%s$ - robbering tools (Illegal)',
  ['vehicle_buy']         = 'the vehicle has been ~g~buy~s~ for ~g~$%s~s~',
  ['vehicle_notunlocked'] = 'the vehicle is still ~g~Locked~s~',
  ['vehicle_sold']        = 'the vehicle has been ~g~sold~s~ for ~g~$%s~s~',
  ['vehicle_unlocked']    = 'Vehicle ~g~Unlocked~s~',
  ['warning']             = '~r~You left the Pawn Shop',
  ['we_r_busy']           = '~r~Sorry~s~ , but we\'re already busy on another vehicle, going back later.',
}

ok so i did see there was no ((( [‘pawnshop_resell’] = ‘sell a stolen vehicle’, ))) now it shows up for me, but its not working when i click it, no transaction is made, nothing happen to the car.

[quote=“DrRogue, post:66, topic:181333”]
here is your mistake:

[‘we_r_busy’] = ‘~r~Sorry~s~ , but we->>>>>>’<<<<<<-re already busy on another vehicle, going back later.’,

You close the comandline, open it again, but do not close it again :wink:
use this line:

[‘we_r_busy’] = ‘~r~Sorry~s~ , we are busy with another vehicle, just come back later!’,

doesnt work boss, you get the option to sell a vehicle but nothing happens when you press enter. no errors.

Fix in last release

everytime I go to the PawnShop I get this error when I hit E.
https://gyazo.com/9d2a900f130636f5b1fdd764396b1635

Add dependencies by NabelRebell

oh thx :slight_smile: by the way i cleand up and fixed sql’s also i crate the german part - nice script, nice job! Also i fixed in conig.lua mecano to mechanic

happy eastern to all

update your script :wink:

Hi, I tested your script and when I go to the pawshop, it doesn’t let me buy any items, it gives me an error in the console:

“Error running system event handling function for resource esx_ownedcarthief: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @esx_ownedcarthief/server/main.lua:229: attempt to index a nil value
stack traceback:
@esx_ownedcarthief/server/main.lua:229: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182”

I tried to delete the database and put it back but nothing

Great job!!! Everything works fine… The problem is I can’t sell any stolen vehicle. I press E but nothing happens. I have the exact number of policeman online, I am neither a mechanic nor a policeman. But still nothing happens. How could I fix it?
By the way there is no errors in the console.
Thanks a lot for your work!

1 Like

@max1280 have you an error in your F8 client console

@AlexGarcio nothing, no errors

How can i add vehicle to blacklist?

Hi there I don´t have any clue why I can´t sell cars from other players on pawn shop so anyone who can help?

Hello To have GPS tracking you have to restart the resource there is suddenly a problem somewhere but I can’t know where

hi guys i think the script its not working for my cuz i put my self as mechanic and i dont have any option to install the alarm and i already buy it