Jump to content

Erro na linha 3


Recommended Posts

marker = {}
 
for i = 1, #config['Markers'] do
    local r, g, b, a = unpack(config['Markers'][i][5])
 
function Markers()
    for i,v in ipairs(config['Markers']) do
        marker[i] = createMarker(config['Markers'][i][1], config['Markers'][i][2], config['Markers'][i][3]-1, 'cylinder', config['Markers'][i][4], r, g, b, a)
        addEventHandler('onMarkerHit', marker[i], PassarMarker)
      end
   end
end
addEventHandler('onResourceStart', resourceRoot, Markers)
 
function PassarMarker(player)
    if getElementType(player) == 'player' then
        triggerClientEvent(player, 'openPassagem', player)
    end
end
Link to comment
  • Administrators

Moving this into the Portuguese scripting section.

It will help if you include your code in a code block using the <> button in your post editor

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