Jump to content

Ayuda con outputChatBox


Daniel1zD

Recommended Posts

Ayuda no entiendo por que el mensaje no se sale please ayudenme

local AreaEntry = createColCuboid ( -1774.52  , -704.71, 850, 750, 255) 
local AreaLS = createRadarArea (  -1774.52   , -704.71, 850, 750, 0, 136, 0 ,190 ) 
  
  
function ENTERLS () 
       
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) 
                setRadarAreaFlashing ( AreaEntry, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", AreaLS, ENTERLS ) 
  
  
function EXITLS () 
         
        if (getElementType(thePlayer) == "player") then 
                if isPedDead ( thePlayer ) ~= true then 
                        
                        outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) 
                        setRadarAreaFlashing ( AreaEntry, false ) 
                end 
        end 
end 
addEventHandler ( "onColShapeLeave", AreaLS, EXITLS ) 

Link to comment
local AreaEntry = createColCuboid ( -1774.52  , -704.71, 850, 750, 255) 
local AreaLS = createRadarArea (  -1774.52   , -704.71, 850, 750, 0, 136, 0 ,190 ) 
  
  
function ENTERLS (thePlayer) 
       
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) 
                setRadarAreaFlashing ( AreaEntry, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", AreaLS, ENTERLS ) 
  
  
function EXITLS (thePlayer) 
         
        if (getElementType(thePlayer) == "player") then 
                if isPedDead ( thePlayer ) ~= true then 
                        
                        outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) 
                        setRadarAreaFlashing ( AreaEntry, false ) 
                end 
        end 
end 
addEventHandler ( "onColShapeLeave", AreaLS, EXITLS ) 

sigue sin salir el mensaje ya le puse el thePlayer pero no sale nada de mensajes

y en consola me sale / Territorio.lua :1 bad Argument @ ' createColCubiod'

Link to comment

Lol, perdón es que pensé algo raro y elimine el comentario, Server-side:

local AreaEntry = createColCuboid ( -1774.52  , -704.71, 7.5, 850, 750, 255) 
local AreaLS = createRadarArea (  -1774.52   , -704.71, 850, 750, 0, 136, 0 ,190 ) 
  
  
function ENTERLS (thePlayer) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) 
                setRadarAreaFlashing ( AreaEntry, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", AreaEntry, ENTERLS ) 
  
  
function EXITLS (thePlayer) 
        if (getElementType(thePlayer) == "player") then 
                if isPedDead ( thePlayer ) ~= true then 
                        
                        outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) 
                        setRadarAreaFlashing ( AreaEntry, false ) 
                end 
        end 
end 
addEventHandler ( "onColShapeLeave", AreaEntry, EXITLS ) 

Link to comment
Lol, perdón es que pensé algo raro y elimine el comentario, Server-side:
local AreaEntry = createColCuboid ( -1774.52  , -704.71, 7.5, 850, 750, 255) 
local AreaLS = createRadarArea (  -1774.52   , -704.71, 850, 750, 0, 136, 0 ,190 ) 
  
  
function ENTERLS (thePlayer) 
        if (getElementType(thePlayer) == "player") then 
                outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) 
                setRadarAreaFlashing ( AreaEntry, true ) 
        end 
end 
addEventHandler ( "onColShapeHit", AreaEntry, ENTERLS ) 
  
function EXITLS (thePlayer) 
        if (getElementType(thePlayer) == "player") then 
                if isPedDead ( thePlayer ) ~= true then 
                        
                        outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) 
                        setRadarAreaFlashing ( AreaEntry, false ) 
                end 
        end 
end 
addEventHandler ( "onColShapeLeave", AreaEntry, EXITLS ) 

mmm no funciona no encuentro el erro y lo único que me lansa la consola es esto Territorio.lua :1 bad Argument @ ' createColCubiod'

pero solo sale cuando inicio el resource

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...