Jump to content

colshape enter/leave


Best-Killer

Recommended Posts

addEvent("SAEGGroups:Kills", true)
addEventHandler("SAEGGroups:Kills", root,function ()
    killgrid = guiCreateGridList(sWidth* (865/1024 ), sHeight*( 590/768 ), sWidth*( 159/1024 ), sHeight*( 178/768) , false)
    guiGridListAddColumn(killgrid, "Gang", 0.5)
    guiGridListAddColumn(killgrid, "Kills", 0.5)
    guiSetAlpha(killgrid, 0.73)   
    dxDrawRectangle(sWidth*865, sHeight*590, sWidth*159, sHeight*178, tocolor(0, 0, 0, 180), false)	
	guiSetVisible ( killgrid,true )
	setTimer ( triggerServerEvent, 15000, 1, "getData", localPlayer )
end
)
addEvent("SAEGGroups:KillsHide", true)
addEventHandler("SAEGGroups:KillsHide", root,function ()
guiSetVisible(killgrid,false) 
end
)
local hillAreaLS = createColRectangle (  -164.82, -2912.12, 65.28, 3150, 2300 ) 

  
function hill_EnterLS (plr) 
if (getElementType(plr) == "player") then
triggerClientEvent ( plr, "SAEGGroups:Kills", plr ) 
end
addEventHandler ( "onColShapeHit", hillAreaSF, hill_EnterLS ) 

function hill_LeaveLS (plr) 
     if (getElementType(plr) == "player") then
	triggerClientEvent ( plr, "SAEGGroups:KillsHide", plr ) 
	end
end
addEventHandler ( "onColShapeLeave", hillAreaSF, hill_LeaveLS )

gui didn't open !! what is the problem 0 errors

Link to comment

 

local hillAreaLS = createColRectangle ( -164.82, -2912.12, 65.28, 3150, 2300 ) 


function hill_EnterLS (plr) 
if (getElementType(plr) == "player") then
triggerClientEvent ( plr, "SAEGGroups:Kills", plr ) 
end
addEventHandler ( "onColShapeHit", hillAreaLS, hill_EnterLS ) 

function hill_LeaveLS (plr) 
if (getElementType(plr) == "player") then
triggerClientEvent ( plr, "SAEGGroups:KillsHide", plr ) 
end
end
addEventHandler ( "onColShapeLeave", hillAreaLS, hill_LeaveLS )

 

Edited by 1LoL1
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...