[FREE] [QBCore] AI Police

im assuming theres no way to make it the police vehicles for your own servers needs? would be really cool if the cruisers would be OPP or toronto police in our server

yes you can i have calgary cop cars on my server and RCMP as well just need to change the vanilla ones in your car folder to your livery for your city

1 Like

yea i am also having this issue. Seems like a great idea

Hella smart.

I am a complete noob to gtav servers so Iā€™m just going to ask instead of googling in circles like I have been for the last 2 hours. Where do I add the

exports['sd-aipolice']:ApplyWantedLevel(--1 to 5)

code. Letā€™s use the example of qb-bankrobbery?

So far I have done everything in the installation instructions. Changed all the lines in every .lua file and then I assumed I take the files from the github and place the sd-aipolice folder in the same folder as all the qb-(insertjobnamehere) folders. But I canā€™t seem to wrap my head around where the export line goes even after staring at the QBCore documentation on exports. Any help would be greatly appreciated. Itā€™s not my first time modding other online servers so just which file and inside of what code section and I should be good to go.

Thanks.

EDIT: So I sort of have it working for jewelry. I added it to when the player smashes the glass it gives them 2 stars but then every time they smash a glass it adds 2 more stars so I need to figure out how to make that only happen once. I did this in the qb-jewelery\client\main.lua but I think I might have to do it in the server side where the police get notified instead so it only happens once? Not sure.

edit2: it is in client, I just had to do it in the firstalarm section. I think I have it figured out now.

1 Like

would you mind
sharing your changes with me

Can someone how this should be added to work?

replace it with the one inside the lua file.

Having an issueā€¦ what would be the fix? (running QB-Core)

however if I remove the line it will show it starts without errorsā€¦ hmmā€¦

@SamuelBlack Hi, how are you? Iā€™ve started to take your code and put it on ESX if you donā€™t mind.

2 Likes

How is that going?

Hi, Iā€™ve put it on pause for the moment because I have other projects that Iā€™m updating but Iā€™ll get back to it soon.

2 Likes

Hi, were you able to convert it to esx?

lo esperare :,v

i did everything it said but its not working.there was a issue .i counld find a certain code which u mentioned so idk what to change in that aspect