[Release] [esx_carthief] Carthief scripts (whitelisted job to steal cars)

Having some issues where the car wont delete when you place it in the sell valuable car?

Any ideas on how to fix?

Is there a esx_outlaw notification somewhere, @Kekke ?

Is there a way to change it so the message it sends the police is anonymous instead of from the car theifs phone ?

Any idea, why cars are always yellow? -.-’

Edit.: I’ve found the issue, any chance how to change it, so it can take info from random spawn of the vehicle? Like original carvariations?

server.lua

CurrentVehicle = CreateVehicle(vehicleModel, createThisCar.Pos.x, createThisCar.Pos.y, createThisCar.Pos.z, 
createThisCar.Heading, true, false)

local props = ESX.Game.GetVehicleProperties(CurrentVehicle)
props.plate = CurrentVehicle
props.color1 = 42
props.color2 = 42
props.tyreSmokeColor = {0, 255, 0}

ESX.Game.SetVehicleProperties(CurrentVehicle, props)

CurrentVehicleSpawnTime = GetGameTimer()
TaskWarpPedIntoVehicle(GetPlayerPed(-1),  CurrentVehicle,  -1)
ESX.ShowNotification(Config.STRING_DELIVER_CAR)

while IsPedInAnyVehicle(GetPlayerPed(-1),  false) == false do
	Wait(0)
end

-- Send information about vehicle to the server
TriggerServerEvent('esx_carthief:pongStolenVehicle', CurrentVehicle, createThisCar.Value)

Hej kekke jag undrade bara hur man får tag i pengarna efter att man har sålt den, Det är nämligen så att vi inte får några pengar efter det står bara det. Det hamnar inte i deras ställe. Vet du problemet sådan fall svara gärna. MVH sälen

If you have not made any changes, I think the person who sells the car will get the money directly.

Hello is there anyone here who knows how to set a timmer to the delivery marker so it doesn’t popup instantly on you’r map/gps?.

how to set up a job in a game?

Once we have the job how do we no what cars can be stolen etc? is there a message in game to tell us what car to steal?

Blips, when you press e in the marker at the 5 blips the police get message and blip following the car, with plate, color etc. go watch the source for more info.

Im sorry i do not understand what you mean,

The only marker i see as a car thief 0 is the yellow sell marker?

Anyone sort out modifying it to allow anyone to steal cars and not just those with the job?

Could one please explain how this job works,?

I have set myself as car thief and the only thing i see is a yellow marker which says press e to sell car

There has to be a set amount of cops on to steal cars(default set to 1). You go up the stair case on the other side of the garage and go to the house on the left. On the other side of the house there is a green circle. Here you can deposit items and guns. If there is enough cops on, on the map you should see markers for valuable car and cheap cars all throughout the map. You go to the car spot go in the little red circle and spawn the steal car. If your server has no car jack then you will need to unlock it. you bring the car back to the spot and go into the garage and sell the car. The money goes into the society money for the job. That’s what I know so far. I went into the config and put no cops required so i could test it on my local test server.

1 Like

Knight(or anyone for that matter), could you explain this a little more? I’m not familair with society money. How does that get distributed to allow the thief to get paid for stealing the car? I sold the car successfully and saw the notification of payment but the player receives nothing for the sale.

I do see the money sitting in the addon_account_data money row, so it did get added properly. I just don’t know how to get it processed so that the thief receives it.

Works on Dunko’s vRP???

Can someone help me I want that everyone that steals the cars gets the money on his own bank not for the boss

why don t work whidraw/deposit money boss? :frowning:

Error running system event handling function for resource esx_society: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:87: attempt to index a nil value (local ‘society’)
stack traceback:
server/main.lua:87: 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

withdraw/deposit ITEMS is so buggy. You can easily deposit millions and millions of items without having them at all…
How about adding some quantities check ?

there are no points for withdrawn money