Dudu3x Posted May 4, 2022 Share Posted May 4, 2022 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 Tut Posted May 5, 2022 Administrators Share Posted May 5, 2022 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
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