Hello, im wondering if you can do this in any kind of jobmanageing? For exampel so if you are set as police, you get the icons for the policewebsite and the laws. And if you are set as ambulance you get the icons for the ambulance website and other stuffs that only the ambulance can see?
Pretty new to this, so i tested somethings, but dosent seem to work, what i have now is in the client.lua:56-69
while true do
– Control ID 20 is the ‘Z’ key by default
– 244 = M
– Use https://wiki.fivem.net/wiki/Controls to find a different key
RegisterCommand(“ems”, function(job)
Playerdata.job
if job.name ~= 'ambulance' then
tabEnabled = not tabEnabled -- Toggle tablet visible state
REQUEST_NUI_FOCUS(tabEnabled)
print("The tablet state is: " .. tostring(tabEnabled))
Citizen.Wait(0)
end
end)
i added my cad to the html and changed the xframe issue i think in my hosting site but it still says the issue of denied x frame when i saved it to where its not blocked
AFAIK, no. The display is written in HTML and HTML doesn’t care about lua or anything happening in FiveM, HTML is just a language used to display stuff.
If you wanted to, you could make separate tablets (separate resources) and edit them so you have a LEO tablet, civ tablet, ems etc.
@AminYadevice Sorry for ping Uhmm seen you help people with this
I added this yesterday and we switched to rocketcad I’ve tried multiple times and I can’t get it to log in. An you help