Jump to content

Bugs & Scripting Help


LuckySki

Recommended Posts

Posted

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

Posted (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 by Dimos7

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...