Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. NeXuS™

    [Help]

    I asked you if you wanted to change the ammo only, as you can easily create a script for it, without using createWeapon. Using setWeaponAmmo, and a calculation would do it's job.
  2. You can use fadeCamera or just draw an image with dxDrawImage.
  3. @Forthwind or you could just use v[1], v[2], etc.
  4. NeXuS™

    GUI > Dx

    You'll have to edit it, or alternatively, you could use thisdp's dxLib.
  5. function sendHeadshot ( attacker, weapon, bodypart, loss ) local x, y, z = getElementPosition ( source) if (getZoneName (x, y, z, true) == "Las Venturas") then if attacker == getLocalPlayer() then if bodypart == 9 then setPedHeadless( source, true ) setPedAnimation ( source, "KNIFE", "KILL_Knife_Ped_Damage", -1, false, false, false ) setTimer(function() triggerServerEvent( "onServerHeadshot", getRootElement(), source, attacker, weapon, loss ) end, 2000, 1) end end end end addEventHandler ( "onClientPlayerDamage", getRootElement(), sendHeadshot ) But, I dont get this. How is the localPlayer going to damage his own head?
  6. NeXuS™

    [Help]

    Do you want to change the ammo only?
  7. You can use setWeaponProperty on client-side which would create custom weapons.
  8. local sX, sY = guiGetScreenSize() local unitW, unitH = 40, 40 local snakeSize = 0 local snakeTable = {} function setupSnake(_snakeSize) snakeSize = _snakeSize for i = 0, _snakeSize-1 do for j = 1, _snakeSize do snakeTable[i*_snakeSize+j] = i*_snakeSize+j end end addEventHandler("onClientRender", root, drawSnake) end function drawSnake() local snakeW, snakeH = snakeSize*unitW, snakeSize*unitH local snakeX, snakeY = (sX-snakeW)/2, (sY-snakeH)/2 local offsetX, offsetY = 0, 0 for i = 0, snakeSize-1 do for j = 1, snakeSize do dxDrawRectangle(snakeX+offsetX, snakeY+offsetY, unitW, unitH, tocolor(0, 0, 0, 170)) dxDrawText(snakeTable[i*snakeSize+j], snakeX+offsetX, snakeY+offsetY, snakeX+offsetX+unitW, snakeY+offsetY+unitH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") offsetX = offsetX + unitW end offsetY = offsetY + unitH offsetX = 0 end end addCommandHandler("snake", function(_, _snakeSize) if not tonumber(_snakeSize) then outputChatBox("You have to insert a number as the snakesize.") else setupSnake(_snakeSize) end end)
  9. You can use this in a script, and it'll create the table.
  10. executeSQLQuery("CREATE TABLE IF NOT EXISTS `housingdata` (name VARCHAR(255), address VARCHAR(255), type INT, interior INT, intlock INT, owner INT, price INT, value INT, income INT, status INT, x FLOAT(11), y FLOAT(11), z FLOAT(11), csX FLOAT(11), csY FLOAT(11), csZ FLOAT(11), csrX FLOAT(11), csrY FLOAT(11), csrZ FLOAT(11))")
  11. Are you sure the table is called "housingdata"?
  12. NeXuS™

    Server list spam

    Fake: mtasa://176.9.39.135:35357 Real: mtasa://37.221.210.31:22005
  13. Try to edit it yourself. If you can't, I'll help you a bit.
  14. There isn't a way to fix this. Contact the owner to give you the uncompiled code. We wont help you decrypting the resource.
  15. https://community.multitheftauto.com/index.php?p=resources&s=details&id=727 https://community.multitheftauto.com/index.php?p=resources&s=details&id=15265 Yes, it has a link to the original script, but it is still a repost, just translated it to Hungarian. Answer: Under the community regulations, translations are permitted in certain circumstances, which have been met in this case (until the original author complains). You're advised to read the regulations topic.
  16. local radius = 520 local MySphere = createColSphere(0, 0, 3, radius) function changeSize() radius = radius - 10 destroyElement(MySphere) MySphere = createColSphere(0, 0, 3, radius) end setTimer(changeSize, 1000, 0)
  17. Because the element is already created. You'll have destroy and then create it in your function called by the timer.
  18. Use a timer, and you'll have to recreate the colshape, as it can't be resized.
  19. NeXuS™

    [Help]

    Try it on client-side.
  20. Add a timer to the trigger and setElementHealth.
  21. The normal download priority will allow you to do this, you don't have to change a thing. The resources will only be started on the client when all of them are downloaded.
  22. If someone accepts your request, and will do it for free, you get a free script. If you want it to be done 100%, you'll have to pay for it. If you don't know anything about scripting, I suggest your read the Lua manual, and then move on to the MTA Wiki.
  23. I'll only give you some functions you'll have to use. If you want someone to do it for you, go to the Looking for staff section. For the panel, guiCreateWindow, guiCreateGridList and the subfunctions for the gridlist. For the spawnpoints, spawnPlayer and probably a table. For the skin, setElementModel.
×
×
  • Create New...