Jump to content

I can't fix this when hitElement


skybad

Recommended Posts

On this line "outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",hitElement,255,255,255,true)"

When the player enter in the area the outputChatBox doesn't work

local colradiat = createColCuboid(1648.9276, 2820.2937, -31.4780, 805.5, 581, 90) 
local zoneeeeee = createRadarArea (1648.9276, 2820.2937, 805.5, 581, 255,0,0, 255 ) 
local player = getLocalPlayer() 
  
  
  
function onPlayerIntroareaRadiativa(theElement) 
  if theElement == getLocalPlayer() then 
  outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",hitElement,255,255,255,true) 
  triggerEvent("vignetTte", getLocalPlayer()) 
  playerentro = true 
  end 
end 
addEventHandler("onClientColShapeHit", colradiat, onPlayerIntroareaRadiativa) 

Link to comment
local colradiat = createColCuboid(1648.9276, 2820.2937, -31.4780, 805.5, 581, 90) 
local zoneeeeee = createRadarArea (1648.9276, 2820.2937, 805.5, 581, 255,0,0, 255 ) 
local player = getLocalPlayer() 
      
      
      
function onPlayerIntroareaRadiativa(theElement) 
if theElement == getLocalPlayer() then 
outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",255,255,255,true) 
triggerEvent("vignetTte", getLocalPlayer()) 
playerentro = true 
end 
end 
addEventHandler("onClientColShapeHit", colradiat, onPlayerIntroareaRadiativa) 

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