Jump to content

Help! Set Element Interior!


Recommended Posts

Change source with localPlayer

setElementInterior ( localPlayer, 0 ) 

Ex:

function clickGrid() 
    local row,col = guiGridListGetSelectedItem(mainGridlist) 
        if (row and col and row ~= -1 and col ~= -1) then 
        setElementModel ( dummyPed, 29 ) 
        triggerServerEvent ( "zombie.hunters", localPlayer) 
        guiSetVisible ( spawnMenu, false ) 
        showCursor ( false ) 
        destroyElement ( dummyPed ) 
        setElementInterior ( localPlayer, 0 ) 
        setElementDimension (localPlayer, 0 ) 
    end 
end 

Edited by Guest
Link to comment

You see my code above which you set as an example, now when GUI closes etc, the camera is like in the air like it's all black and I can see the sun?

setCameraMatrix(254.7190,  -41.1370,  1002, 256.7190,  -41.1370,  1002 ) 

function clickGrid() 
    local row,col = guiGridListGetSelectedItem(mainGridlist) 
        if (row and col and row ~= -1 and col ~= -1) then 
        setElementModel ( dummyPed, 29 ) 
        triggerServerEvent ( "zombie.hunters", localPlayer) 
        guiSetVisible ( spawnMenu, false ) 
        showCursor ( false ) 
        destroyElement ( dummyPed ) 
        setElementInterior ( localPlayer, 0 ) 
        setElementDimension (localPlayer, 0 ) 
    end 
end 

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