Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/01/22 in all areas

  1. نسيت اضيفلك الحدث دا onClientGUIChanged وظيفته انك لما تكتب شئ بالايديت يغيرها دا مثال كتبته من الفون ولم اجربه بس حطيته للتوضيح فقط addEventHandler("onClientGUIChanged", editBox, function() local num = guiGetText (editBox) if not tonumber (num) then return guiSetText (editBox,string.gsub(num,'[^%d]','') end end)
    2 points
  2. @The_GTA, thank you @IIYAMA your method worked, thank you so much
    1 point
  3. You can also cancel the object-break of the current resource. -- clientside addEventHandler("onClientObjectBreak", resourceRoot, -- resourceRoot so that it only triggers for elements of the same resource function() cancelEvent() setObjectBreakable ( source, false ) -- optional end ) Or make use of a propagation call for all elements of the whole resource: -- clientside (important for this method here is that you create the elements on serverside without delay > not on onResourceStart) addEventHandler("onClientResourceStart", resourceRoot, function () setObjectBreakable ( source, false ) end, false) Options enough.
    1 point
  4. The breakable-property of objects does not appear to be synchronized by the MTA server based on the Lua functions. In that case you should try manually triggering a remote clientside event handler with the object as source parameter which would set your object unbreakable on each connected client. You should do that for each connected and each connecting client.
    1 point
  5. كفووووووووو يالغالي
    1 point
  6. It will be picked up at some point, AC Team has various other issues to tend to.
    1 point
×
×
  • Create New...