Jump to content

x[استفسار طارئ]x : ايديتور جديد


Recommended Posts

السلام عليكم ورحمة الله وبركاته , ذحين معي ذا الكود مبني علي سكربت ايديتور داخل الجيم

المهم الكود مايشتغل الا لو كنت فالعالم الطبيعي , جربت اسوي هيك ماظبط , وين الخطأ طيب ؟

 

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