Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/03/23 in all areas

  1. Sneak Peek #2 Aproape la fel ca in joc
    2 points
  2. Hi there, i have a problem. I cannot figure out how to make notify to department when somebodys robbing smthing like bank or atm. i want it to say to dep when somebodys robbing smthing like The jewelry store is being robbed, for all available units react. Can somebody help me with this? Thanks forward.
    1 point
  3. One of the most beautiful examples, that you can script EVERYTHING in MTA. This is how racing would look from Top Down View perspective. Map and script made by [uDka]lukum and it's available on the uDka Racing Server!
    1 point
  4. my bad -- Client local boxes = { {2969, 2484.1240234375, -1519.0988769531, 23.9921875, 0, 0, 55.477935791016}, } -- //////////////////// LOAD BOXES //////////////////// -- for i,v in ipairs(boxes) do local r = math.random(1,270) if isElement(boxes[i][8]) then destroyElement(boxes[i][8]) end boxes[i][8]= createObject(v[1], v[2], v[3], v[4]-0.9, 0, 0, r) end -- Client function takeBox(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if element and getElementType(element) == "object" and button == "left" and state == "down" then local x, y, z = getElementPosition(localPlayer) local x1, y1, z1 = getElementPosition(element) local distance = getDistanceBetweenPoints3D(x,y,z,x1,y1,z1) if distance < 3 then if getElementModel(element) == 2969 then setElementData(localPlayer, "boxes", boxes+1) for index, v in ipairs(boxes) do if v[8] and isElement(v[8]) then if v[8] == element then triggerServerEvent("destroyBox", localP, index) break end end end end end end end end --- server -- addEvent("destroyBox", true) addEventHandler("destroyBox", root, function(index) triggerClientEvent(root, "destroyBox", root, index) end ) -- client --- addEvent("destroyBox", true) addEventHandler("destroyBox", root, function(index) if boxes[index] and boxes[index][8] and isElement( boxes[index][8]) then destroyElement( boxes[index][8] ) end end )
    1 point
  5. Sneak Peek #1 https://streamable.com/bn5x5j
    1 point
×
×
  • Create New...