qalle-git / esx-qalle-jail

Jailsystem, working prisonwork to earn small amount of cash!
36 stars 36 forks source link

Some things that could be better to be honest. #4

Closed benzon closed 5 years ago

benzon commented 5 years ago

Check that you are a cop when opening the menu right now everyone can open that up.

Check if you are in jail right now you can work out the front door, if you want to, and when you are in prisson you should not be able to go to security to be honest.

And if you are a visitor you should not be able to go in to the jail area, only in to the visitors room.

benzon commented 5 years ago

Ahh i think i know what's going on, it's not updating on job change, that might be an issue to be honest.

If you fire a corrupt officer, and put him in jail hmm

benzon commented 5 years ago

Ye thats the issue you should add

RegisterNetEvent('esx:setJob') AddEventHandler('esx:setJob', function(job) PlayerData.job = job end)

just after esx:playerLoaded in client then it looks to update the right way :)

benzon commented 5 years ago

Minor question tho, with the script on PED's are spawning inside the security part of the jail, with out the script there is none, did you add something or ?

qalle-git commented 5 years ago

@benzon I did not add any extra thing for the peds, really dont know. setjob added. Ill check on that if he is in jail not to teleport.