LuckySki Posted April 30, 2018 Share Posted April 30, 2018 Anyone know why I am getting this error when I attempt to /duty on my script? ERROR: duty\g_duty.lua:36: attempt to index local 'factionDuty' (a boolean value) Lines that the error is directing me to - 65: allowList = getElementData(resource, "dutyAllowTable") 66: for k,v in pairs(allowList) do 67: if tonumber(v[1]) == factionID then (roleplay server) Also, can someone please tell me how to add police lights to a unmarked vehicle? AKA, when you press H, police lights will start. By unmarked vehicle, I mean a civilian car. Like a Sultan. Example:https://gyazo.com/16040d27f3cea2e98e738d3d0fc4ba94 Link to comment
Dimos7 Posted April 30, 2018 Share Posted April 30, 2018 (edited) addVehicleSirens setVehicleSirens Edited April 30, 2018 by Dimos7 Link to comment
LuckySki Posted May 1, 2018 Author Share Posted May 1, 2018 (edited) @Dimos7 http://prntscr.com/jc6wy4 That's what I'm working with right now. Where should I add it, and how does it know what car to add it to? Edited May 1, 2018 by LuckySki Link to comment
Dimos7 Posted May 1, 2018 Share Posted May 1, 2018 (edited) You need check which one is for Police with element data and add siren set there places if you want have object siren like orginal Police car you need createObject Edited May 1, 2018 by Dimos7 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now