Jump to content

Hoffmann

Members
  • Content Count

    63
  • Joined

  • Last visited

Community Reputation

9 Neutral

1 Follower

About Hoffmann

  • Rank
    Snitch

Details

  • Gang
    Xtreme 5
  • Location
    St. Petersburg

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Уже сообщил разработчикам МТА о твоей проблеме. Это нельзя оставлять без ответа. Ждем!
  2. I expected the era of ffs-like gamemodes would have ended in 2016. Seems like I was wrong. I don't want to be annoying here, but lobby and toptimes look far too identical to ffs-gaming.
  3. Hoffmann

    Pages

    I guess you want to display only 5 elements from table somewhere(on some page), right? The way you can do it is: local elements = {{411, "Infernus"}, {546, "Intruder"}, {429, "Banshee"}, {541, "Bullet"}, {531, "Tractor"}} local startIndex = 3 -- index to start with local numberOfElements = 2 local fiveElements = {} for idx = startIndex, startIndex + numberOfElements - 1 do outputChatBox(elements[idx][2]) -- for example, print names of vehicles in table from index 3 and select 2 elements that are next end The code above will output: Banshee Bullet
  4. addEventHandler("onPedWasted", pedElement, function(_, killer) setPlayerWantedLevel(killer, 3) end) addEventHandler("onPlayerWasted", getRootElement(), function(_, killer) setPlayerWantedLevel(killer, 3) end) Read more about onPedWasted and onPlayerWasted events here https://wiki.multitheftauto.com/wiki/OnPedWasted and https://wiki.multitheftauto.com/wiki/OnPlayerWasted
  5. Note: For remote players, you have to use setPedAimTarget before setPedLookAt.
  6. I don't really like the idea of making wheels with huge customization options as vehicle components because of big .dff file size. You could make unlimited number of wheels as if they were objects. In this way you have to make regular wheels invisible (setVehicleComponentVisible). Then, inside onClientRender or even better onClientPreRender event you have to copy the position and rotation of default wheels(getVehicleComponentPosition and getVehicleComponentRotation) and set it as the position and rotation for your objects that will represent your wheels. Later, you will want this to be synchro
  7. Если уж на то пошло, то fadeCamera(player, true) в серверном скрипте. Если сервер freeroam, то попробуй запустить ресурс play, в котором прописаны спавны.
  8. function darmanKardan (thePlayer, command, player) local taraf = getPlayerFromName(player) if player then setElementData(taraf,"healrequest", pending) outputChatBox("#00ff00The doctor is willing to heal you. Do you accept?", taraf, 255, 255, 255, true) else outputChatBox("#ff0000Syntax: /heal <Name>", thePlayer, 255, 255, 255, true) end end addCommandHandler("heal", darmanKardan) function acceptHeal (thePlayer, command) local requestStatus = getElementData(thePlayer, "healrequest") if (requestStatus == "pending") then setElementData(player,"healrequest", unpending) setE
  9. Is render target destroyed every time onClientMarkerHit event is triggered? Did you test it with new markers?
  10. It won't look as cool as this decision.
  11. The onClientRender event and some basic math are decision if you want to make movements smoother
  12. Seems like those scripts are leaked.
  13. You could get vehicle's rotation with getElementRotation function and set wheels' rotation with setVehicleComponentRotation for each frame in onClientRender event so wheels will stay straight relative to your vehicle.
×
×
  • Create New...