[Release] esx_ownedcarthief

i have same error

Hello can anyone help me with this script I keep getting this error in my server console when I go to buy stuff from the Pawnshop it doesn’t allow me and I get this error:

SCRIPT ERROR: @esx_ownedcarthief/server/main.lua:241: attempt to compare number with nil

After 4 day of coding and test it’s done. 1.0.4 is out!

Last release here.

1.0.4 Persistent alarm system and lot of bug fix
Add persistent alarm system
Add Menu for persistent alarm system
Add Car not in sell in esx_vehicleshop can’t be sold in black garage
Add&improve fr,en,br,de
Remove press key event
Remove lot of code no more used
Fix system level 3 alarm
Fix map blips
Fix item shops
Fix mecano job now mechanic
Lot of code cleaning

Thx to
NebelRebell --Langage improve
Carl Carmoni --Testing & Code help
TurnoxRG --Code help
Sir_Smog1 --Testing & Code help

1 Like

gonna test it out thanks :smiley:

you’re amazing scriptermy dream one day is to reach your level
tu eres un scripter demasiado bueno

i have simple problem i cannot use the alarm interface can you help ?

Are you sit in a car?

ALEX where you from? i need help how to install a alarm i am mechanic but i can install i think is because i use new mechanic and in your resource the name of job is mecano you can help me?

@shruog i Come from Québec, canada
Yes i have miss to write “mechanic” and not “mecano”
You can fix it at this line

sure thanks for answer but if i change this line, puting,“mechanic” the alarm interface don’t open in game sorry my bad english

help me please

I can’ see blips or anything. Can you help me?

@alfiansm You need to be in a car :slight_smile:

@shruog Alarm interface can be use if you are in a car.

I’m sorry sir. How to work this script? Where i get the car for sell?

Do I have to steal another player’s car to sell?

i know bro but i chance mecano to mechanic i can’t install alarm please help me i need this is script so much

Hey bro, can you tell me. How to work this script? Where i get the car for sell?

You can sell the player’s car at these locations:
(1218.43, -3230.96, 4.16),
(2352.38, 3133.29, 47.71)

@Solbac1134 @shruog This worked for me
You have to change the following code from line 312 to 316

if PlayerData.job.name == ‘mechanic’ then
table.insert(elements, {label = _U(‘alarm1install’, Config.Items.alarm1), value = ‘basealarm’})
table.insert(elements, {label = _U(‘alarm2install’, Config.Items.alarm2), value = ‘modgps’})
table.insert(elements, {label = _U(‘alarm3install’, Config.Items.alarm3), value = ‘satcon’})
end

1 Like