Agent69 Posted July 2, 2019 Share Posted July 2, 2019 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
Dimos7 Posted July 3, 2019 Share Posted July 3, 2019 In that code you try get a object from dimension or set it? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now