Patrick2562

Members
  • Content count

    94
  • Joined

  • Last visited

  • Days Won

    1

Patrick2562 last won the day on April 3

Patrick2562 had the most liked content!

Community Reputation

11 Decent

1 Follower

About Patrick2562

  • Rank
    Punk-@ss B*tch

Details

  • Gang
    SkyTeam
  1. Disabling custom HUD with /showhud

    function render() if getElementData(localPlayer, "auth:uid") then -- some DX draw end end addEventHandler("onClientRender", getRootElement(), render) local show = true addCommandHandler("showhud", function() if show then removeEventHandler("onClientRender", getRootElement(), render) else addEventHandler("onClientRender", getRootElement(), render) end show = not show end)
  2. Disabling custom HUD with /showhud

    local show = true addEventHandler("onClientRender", getRootElement(), function() if show and getElementData(localPlayer, "auth:uid") then -- some DX draw end end) addCommandHandler("showhud", function() show = not show end)
  3. Disabling custom HUD with /showhud

    Send me the full code.
  4. [Question] Meta

    You can't do that. You haven't possibility to list files in a folder.
  5. [Question] Meta

    Check this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3016
  6. [HELP]ACCOUNT

    Errors? (check 'debugscript 3')
  7. Unlimited oxygen.

    local maxOxygen = math.floor ( 1000 + getPedStat ( localPlayer, 22 ) * 1.5 + getPedStat ( localPlayer, 225 ) * 1.5 ) addEventHandler("onClientRender", getRootElement(), function() setPedOxygenLevel ( localPlayer, maxOxygen ) end)
  8. getElementsWithinColShape problem

    Try this: -- SERVER SIDE local spawns = { {0,0,4}, {5,0,4}, {10,0,4}, {15,0,4}, {20,0,4}, } local pickups = {} function pickupObject(i) outputChatBox("pickuped! | objectid: "..getElementModel(pickups[i].object)) destroyElement(pickups[i].object) destroyElement(pickups[i].pickupCol) pickups[i] = "pickuped" end function createPickup(i) local object = createObject(336, spawns[i][1], spawns[i][2], spawns[i][3]) local col = createColSphere(spawns[i][1], spawns[i][2], spawns[i][3], 2) pickups[i] = {object = object, pickupCol = col} addEventHandler("onColShapeHit", col, function() pickupObject(i) end) end function respawnPickups() for i, v in ipairs(pickups) do if v == "pickuped" then createPickup(i) end end end addCommandHandler("respawn", respawnPickups) for i, v in ipairs(spawns) do createPickup(i) end
  9. getElementsWithinColShape problem

    And you want to respawn this pickups, with a command. (only with command?)
  10. getElementsWithinColShape problem

    You want to do an item pickup script?
  11. getElementsWithinColShape problem

    If you create the col, after the object, it's works. I tried it before. Example. local object = createObject(336, 0,0,4) local col = createColSphere(0,0,4,5) addCommandHandler("countit", function() local objects = getElementsWithinColShape(col, "object") outputChatBox(#objects) end)
  12. Load handling

    Hello! I made a handling, in 'hedit' resource. (link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3716) I can export this handling and I got a string, like this: SWATVAN 5000.0 10000.0 2.5 0.0 0.0 -0.1 85 0.65 0.7 0.46 5 110.0 24.0 25.0 4 D 6.4 0.45 0 27.0 0.7 0.08 1.0 0.30 -0.18 0.5 0.0 0.32 0.06 40000 880010 1000000 0 1 13 How can I load this handling to all vehicles, easily? I don't want to apply every handling property, with 'setVehicleHandling'.
  13. Zombie Killmessages

    You need to start the 'killmessages' resource.
  14. Spoiler

    getVehicleComponentPosition setVehicleComponentPosition
  15. Spoiler

    Már a kocsi model-t így modellezték meg, hogy a Spoiler külön component. Ezért a 'setVehicleComponentPosition' funkcióval tudja változtatni a pozícióját. Ez egy alap járművel nem megoldható. [You need a vehicle model, what have the spoiler component, and you can move this component, with the 'setVehicleComponentPosition' function.]