Jump to content

IMAGE DESTOY


Try

Recommended Posts

Posted

Heyoo!!!!

Guys i created a image at out one function like:

ITS A EXEMPLE

image = guiCreateStaticImage(...................) 

Then i need to delete the image when the player login how to do this

Posted

-- client side

addEvent("onLogin",true) 
addEventHandler("onLogin",root, 
function () 
   if isElement(image) then destroyElement(image) end 
end) 

-- server side

addEventHandler("onPlayerLogin",root, 
function () 
    triggerClientEvent(source,"onLogin",source) 
end) 

Posted

Ok thanks but help me with this:

I need like a movie when the player join

I saw it in German Public Real Life and at the RoleplayGameMod

Posted

Not sure, but you can do something like:

addEventHandler("onClientPreRender", root, 
function() 
local x, y, z = getElementPosition(plane) 
setCameraMatrix(px, py, pz, x, y, z) 
end) 

Plane here must be the plane's variable you may set it's id server side to use it client side by "getElementByID".

px, py, pz is the position where the camera will be.

x, y, z is the look at, we get the planes position and set's the camera matrix to look at it.

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