Jump to content

[HELP] in-game Editor


Agent69

Recommended Posts

hello all , i got a problem here when i try to create an object in Dimension world or interior world , i use getElementDimension and didn't work on Dimension world :| 

the code : 

function meditCreateData( id, posTable, rotTable )
    local num = createEntity( id, posTable, rotTable )
    if source then 
        if ( getElementDimension( source ) ~= 0 ) then
    setTimer( triggerClientEvent, 500, 1, source, 'meditStartEditing', source, data[num].element ) end
end
end


function meditInfoUpdate( element, newmodel, posTable, rotTable )
    local num = dataFromElement[ element ] or false
    if num and data[ num ] then
        
        if posTable and ( getElementDimension( data[num].element ) ~= 0  ) then
            data[num].position = posTable
            setElementPosition( data[num].element, posTable.x, posTable.y, posTable.z )
        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...