Jump to content

Problem with duty


Charlekraft

Recommended Posts

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 by Charlekraft
add lua
Link to comment

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...