Jump to content

IMAGE DESTOY


Try

Recommended Posts

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

Link to comment

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.

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