Jump to content

i have a problem with marker table


Recommended Posts

Hi, I have a problem with creating a marker with a table, create the marker, but it gives me a warn to debug and not found

local marker = {} 
  
function Test() 
marker[source] = createMarker(-1055.3283691406,-1679.3109130859,76,"cylinder",5.5,255,255,0,170 ) 
end 
addEvent("Test", true) 
addEventHandler("Test",root,Test) 
  
function TestMarker() 
exports.sidechat:outputSideChat ( "test", 255, 0, 0) 
end 
addEventHandler("onClientMarkerHit",marker[source],TestMarker) 
  

Link to comment
  • Moderators

local marker = {} 
  
addEvent("Test", true) 
function Test() 
marker[source] = createMarker(-1055.3283691406,-1679.3109130859,76,"cylinder",5.5,255,255,0,170 ) 
addEventHandler("onClientMarkerHit",marker[source],TestMarker) 
end 
addEventHandler("Test",root,Test) 
  
function TestMarker() 
exports.sidechat:outputSideChat ( "test", 255, 0, 0) 
end 
Link to comment
local marker = {} 
  
function Test() 
marker[source] = createMarker(-1055.3283691406,-1679.3109130859,76,"cylinder",5.5,255,255,0,170 ) 
end 
addEvent("Test", true) 
addEventHandler("Test",root,Test) 
  
function TestMarker(hitPlayer) 
if source == marker[hitPlayer] then 
exports.sidechat:outputSideChat ( "test", 255, 0, 0) 
end 
end 
addEventHandler("onClientMarkerHit", root,TestMarker) 

Try with this.

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