Jump to content

IIYAMA

Moderators
  • Posts

    6,063
  • Joined

  • Last visited

  • Days Won

    208

Everything posted by IIYAMA

  1. As far as I know. local blip = exports.customblips:createCustomBlip ( x, y,32, "images/player.png", 50 )
  2. and what if you set the count before activating the nitro?
  3. Yes that is possible. -- server addVehicleUpgrade(vehicle, 1010) triggerClientEvent(root,"infinityNitro",vehicle) -- client addEvent("infinityNitro",true) addEventHandler("infinityNitro",root, function () if isElement(source) then setVehicleNitroActivated ( source, true ) setVehicleNitroCount (source,101 ) end end)
  4. https://wiki.multitheftauto.com/wiki/Se ... oActivated https://wiki.multitheftauto.com/wiki/Se ... NitroCount
  5. (1) Select one of the objects. (2) Press f3. (3) Scroll down till you see alpha. Set alpha to 0. (4) Click OK and there you are. You can set the rotation, position, interior ,dimension. You can also set collision enable or disable. You can set the size of it. (but you can't scale the collision) etc. I hope I did answer you question.
  6. Start freeroam. (if you haven't done that) Click on "map" and under the gta san map, you can see your position.
  7. You won't learn anything from the zombie script unless you know the basic. That is biggest mistake from all the starters.... Take my advice and go study the wiki mta samples. You will learn the most of these. These pages will show you most of the samples. https://wiki.multitheftauto.com/wiki/Cl ... _Functions https://wiki.multitheftauto.com/wiki/Cl ... ing_Events https://wiki.multitheftauto.com/wiki/Se ... _Functions https://wiki.multitheftauto.com/wiki/Se ... ing_Events And don't just go mix up code, just try to find out the structure of how it is builded up. Good luck!
  8. IIYAMA

    Question

    Wrong: takePlayerMoney ( thePlayer 2500 ) Correct: (,) takePlayerMoney ( thePlayer, 2500 )
  9. Hello people, I am at the moment busy with my own enemy ped system. But I having a big sync bug problem with it. One 1 ped is actually shooting, the others are just firing blanks..... And the very bad thing about it is that it is all happening with the syncer, no other players are in the server. (some times 2 peds are synced correctly but that doesn't happen often) See screenshot. Anybody has reported a bug like this? or know how to prevent this? It is very said that 1 player can only sync 1 ped with correct results.... Do I need to enable sync bullets or doesn't that work for peds?
  10. IIYAMA

    killed by ?

    Woow, you are very generous.
  11. IIYAMA

    killed by ?

    Doesn't work when a ped is in a vehicle. https://wiki.multitheftauto.com/wiki/OnClientExplosion
  12. Sorry but this is more requesting to edit property from unknown people. He should come here to fix it for you, not the hard working scripters from the community.
  13. Don't forget to make your variables local, especially when you use render functions. It simply will start lagging if you don't. local renderHud = function () local munitie = getPedTotalAmmo ( localPlayer) local clip = getPedAmmoInClip ( localPlayer) local IDarma = getPedWeapon(localPlayer) local arma = getWeaponNameFromID(IDarma) local viata = getElementHealth (localPlayer) local armura = getPedArmor (localPlayer) local bani = getPlayerMoney()-- "thePlayer" this shouldn't be there. -- put your dx stuff here-- -------------------------------- end local handler = true addEventHandler("onClientRender",root,renderHud) addCommandHandler("showhud", function () if handler then removeEventHandler("onClientRender",root,renderHud) handler = false else addEventHandler("onClientRender",root,renderHud) handler = true end end)
  14. Cause ElementData is attached on an element. When this player/element leaves, the element is gone and so is the data. Elements are actuality in lua expressed as user-data. Every element does have it's own user-data, they are build up out several numbers and letters. When a player leaves the server his user-data can be saved at the server, but when he rejoins his user-data has been changed. But you can use the player account (or serial) instead.
  15. IIYAMA

    Head Rotation

    For what I created: "onClientResourceStart" "onClientRender" "onPlayerSpawn" triggerClientEvent table = {} getNetworkStats getDistanceBetweenPoints3D getTickCount and much more... for a working a script, that's keeping up the performance of your internet speed. At the moment I am busy with something similar to combination of slothbot and dayZ, I don't have time to guide you, sorry.
  16. IIYAMA

    Head Rotation

    Ah, you are hunting for free scripts... I know because I already fixed it and shared it with the poster. So yes a bit late,
  17. maybe you should check your progress. This makes no sense. It is the exact same value tick. local duration = startTick+tick-startTick This will give you the future time, so you can compare it with the time now. local futureTime = startTick+tick For progress backwards: local progress = 1-(startTick/futureTime) Next to that, you have to reset the:(because you will be re-comparing the time now with the future time) startTick = getTickCount()
  18. He has to encode it to UTF-8 with notepad ++......... (8-bit Unicode Transformation Format) The server can't read the code.
  19. What kind of element does it returns? (some elements can't be destroyed, like serverside colshapes destroying at clientside)
  20. IIYAMA

    Colshape

    you can try to use some functions/lines of maplimits. https://community.multitheftauto.com/in ... ails&id=12 It allows you to detect if an element is within a specific area.
  21. For finding the script/resource. It is just a question of start and stop the resources. When you found the resource. Use: control + F (in notepad etc.) To search for: addCommandHandler or search for the command you are using.
  22. what is Pitch and Yaw in lua? Can you explain a bit more, because I sorry but I have no idea how this is working.
  23. If you can get the Z rotation, you can also get the X and Y rotation. It's just math with sins, cons and tans. sins, cos and tan isn't JUST this math. I know how they work, but I don't know how to use them with this. Since my brain can't merge the ordinary math with 3D math...... Pls give me a sample, if it is just sin cos and tan.
×
×
  • Create New...