Charlekraft Posted February 12, 2017 Share Posted February 12, 2017 (edited) Hi, i've got a problem with duty. I make the duty for my character in the f1 (faction panel), i choose my duty and i reconnect. When i reconnect i don't have my duty and i've got a message "There is not duty for you" I've got a message when i reconnect -- check if the player has the duty package if duty > 0 then local foundPackage = false for key, value in ipairs(factionPerks) do if value == duty then foundPackage = false break end end if not foundPackage then triggerEvent("duty:offduty", client) outputChatBox("Your duty has been deleted", client, 255, 0, 0) end end The message is the duty has been deleted. The packages of duty are in the database but in game, i don't have packages Edited February 12, 2017 by Charlekraft add lua Link to comment
nikitafloy Posted February 12, 2017 Share Posted February 12, 2017 2 hours ago, Charlekraft said: factionPerks need code with this variable Link to comment
Charlekraft Posted February 12, 2017 Author Share Posted February 12, 2017 (edited) faction perks is the package of a faction Edited February 12, 2017 by Charlekraft Link to comment
WhoAmI Posted February 12, 2017 Share Posted February 12, 2017 This code you gave us looks okay, there is no error in it. So the point is that something must be badly scripted in this 'faction package'. Link to comment
Charlekraft Posted February 12, 2017 Author Share Posted February 12, 2017 Faction package is the duty, i give you the duty script ? Link to comment
WhoAmI Posted February 12, 2017 Share Posted February 12, 2017 Just post everything here - in the forum. Link to comment
Charlekraft Posted February 13, 2017 Author Share Posted February 13, 2017 I give you the s_duty : http://pastebin.com/JLXg4U5f Link to comment
Charlekraft Posted February 16, 2017 Author Share Posted February 16, 2017 help please Link to comment
keymetaphore Posted February 20, 2017 Share Posted February 20, 2017 On 2/16/2017 at 16:49, Charlekraft said: help please Hey, using leaked scripts isn't good. Owlgaming version 4.0 Link to comment
Syntrax# Posted February 20, 2017 Share Posted February 20, 2017 You could use setAccountData for this but since this is a leaked Owlgaming gamemode i'm not going to help you out. 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