Jump to content

Help GUI!


Recommended Posts

Posted
function onDeath () 
spawnSystem() 
triggerServerEvent ( "on.death", localPlayer ) 
end 
addEventHandler("onClientPlayerWasted", getRootElement(), onDeath) 

Basically when a person dies, I want to re-open the gui function called -

function spawnSystem() 

, but it doesn't open it up.

Posted
function spawnSystem() 
- 
end 
addEventHandler("onClientResourceStart", resourceRoot, spawnSystem) 
  
function onDeath () 
spawnSystem() 
triggerServerEvent ( "on.death", localPlayer ) 
end 
addEventHandler("onClientPlayerWasted", getRootElement(), onDeath) 

Posted

try this if it dosen't work , try triggerClientEvent from server side (onPlayerWasted)

  
function onDeath () 
  if source == localPlayer then  
   spawnSystem() 
   triggerServerEvent ( "on.death", localPlayer ) 
  end 
end 
addEventHandler("onClientPlayerWasted", getRootElement(), onDeath) 

Posted

I am using setElementPositon

function onDeath () 
   if source == localPlayer then 
   spawnSystem() 
   triggerServerEvent ( "on.death", localPlayer ) 
  end 
end 
addEventHandler("onClientPlayerWasted", getRootElement(), onDeath) 

Posted
My spawn is like set in a interior etc,

but when I did my screen is black why? And GUI shows up.

i think there is something wrong with your (dimension;interior)

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