-- Display marker and Enter/Exit events
Citizen.CreateThread(function ()
while true do
Wait(0)
if PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "police" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" or
PlayerData.job ~= nil and PlayerData.job.name ~= 'unemployed' and PlayerData.job.name == "jobname" then
v = Config.Marker
if( v.Type ~= -1 and GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), v.Pos.x, v.Pos.y, v.Pos.z, true) < 50 ) then
DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, false, false, false)
end
if( v.Type ~= -1 and GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x ) then
inMarker = true
hintToDisplay(v.Hint)
else
inMarker = false
end
end
end
end)
There was 1 problem you found, thanks for pointing that out.
Have no idea what you’re talking about, “man name”?
It’s my script I decide what it will use. Don’ want to use it? Create your own.
Thanks for pointing that out, I’ll update it. (Have no idea what you mean by “none police can join” though)
This is pure bullcrap, come up with something more concrete. There are no junk code in the css. It’s ugly, I know, but it’s not like I have to make it responsive = ugly code is fine.
What?
I won’t rewrite it but you’re more than welcome to write your own and share it with the community.
I’m using his ressources since a “long time” and I can tell you that his job his amazing.
Of course as each ressource you download you will have to modify it to make it correspond to your requirements.
Using DOB and Lastdigits is a great idea to get a “personnal number” that is unique.
For my case I have modified the type of DOB, the lastdigits to phone number and transposed this format to all of his resources.
Now, criminal logs, the police mobile computer, the ID cards works perfectly and totally communicate between them.
Of course for that, you will have to do some edits that are more than a simple drag and drop.
Don’t forget that he is sharing his work and doing readmes to help “drag and drop devs” and you are still finding things to complain about …
Hey, Don’t get me wrong. Your scripts are amazing and you are a great developer.
I just pointed out couple things.
By meaning police join I meant that people without the police job can use it.
On the database it saves the color eye. Why?
I just showed you couple thing that will make the script better.
Oh and if I want to search on someone. How the hell I will get his ID? that’s the main problem
You’re asking me why I’m saving the eye color but not the hair color or the gender? Since we can’t send the mugshot to the javascript this is the best I could do. It’s not much but it’s something that could help the police finding the right person. If I remove those two, sure it would take up a couple of bytes less but if you don’t have those extra bytes on your server you should considering upgrading it. But hey, if you don’t want them just remove them?
if you’ve downloaded the new version it should only allow players with the police job to use it. (It was updated before you wrote the first post).
It’s not my problem how you decide to get the players ID. Use a script for it? It would be really weird to have a criminal record without the DOB. You must be the only one that’s not using the DOB.
Unfortunately you cut the screenshot off right at the part where it’s important. You’ll want to paste or screenshot the whole error if you want people to be able to tell you what’s wrong.
Very nice script. However, I turned it into two scripts. One only allows searching the database at the 2 sheriff stations and the LSPD @ Mission Row. The other is set in the booking room and that is where you add records when booking a prisoner.