Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    F1

    You can use guiSetEnabled to disable a GUI element. When a player login ("onPlayerLogin") check if he's admin and triggerClientEvent according to it, if he's admin enable the buttons, if he's not disable them. Or maybe when the player press F1.
  2. I enabled voice chat in mtaserver.conf, 1 I added it myself, and in mtaserver.exe Voice Chat: Quality [4]; Simple Rate: [16000kHz] And ingame when I press z, my name doesn't appear @ bottom right, nothing happens. And in my console: Server Voice Chat Quality [4]; Sample Rate: [16000kHz]; Bitrate [42200bps]
  3. JR10

    Quick question?

    What error, you get, and that's not the whole script.
  4. JR10

    SUGGEST ME

    Well, from what I have seen around it's not that good, even though I hosted my server there for a while, didn't have any problems.
  5. Lol, are you asking for how to map? There is locations up in the map editor, choose an interior and then start mapping. Maybe do it in the sky.
  6. JR10

    car mod trubble

    Means you are not really good at modelling. The txd is corrupted in another word Fucked up, download working one.
  7. JR10

    Spawn in San Ferrio

    editor_main >> server >> playerspawn.lua >> Change the coordinates there to wherever you want.
  8. JR10

    spawn blip

    Either the resource's name is wrong, or the resource is not running. The resource must be running first when the function is executed.
  9. iv = 0 function toggleInvis( source ) if iv == 0 then iv = 1 setPlayerNametagShowing(source, false) setElementAlpha(source, 0) destroyBlipAttachedTo(source) else iv = 0 setPlayerNametagShowing(source, true) setElementAlpha(source, 255) end end function destroyBlipAttachedTo(player) for id, attachedElement in ipairs(getAttachedElements(player)) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end addCommandHandler ( "invisible", toggleInvis) ???
  10. JR10

    SUGGEST ME

    www.serverffs.com
  11. Dude, there is no way you can't create something out side the boundaries.
  12. WTF, 3 arguments at addCommandHandler. You have no idea what you are doing. addCommandHandler("hideblip", function(player,_,targetName) local target = getPlayerFromName(targetName) if target then destroyBlipAttachedTo(target) end end) function destroyBlipAttachedTo(player) for id, attachedElement in ipairs(getAttachedElements(player)) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end use it like this: /hideblip playerName @megaman create it again with another script createBlipAttachedTo
  13. That's a GTA thing not MTA, and it's not a bug to fix. And you can't create anything outside the world boundaries.
  14. JR10

    spawn blip

    Lol, the resource is not running. Start customblips then do it again.
  15. JR10

    spawn blip

    Post the errors.
  16. That's the function I gave you, you specify the player. destroyBlipAttachedTo(player)
  17. math.round is better, if .4 or less then it's floor , if .5 or more then it's ceil.
  18. JR10

    Permissions

    Dude, you don't know what to put in meta.xml Then learn : https://wiki.multitheftauto.com/wiki/Meta.xml OR use this: viewtopic.php?f=108&t=22247&p=288206&hilit=meta+generator#p288206
  19. JR10

    Modeling

    Yes, 3Ds max is the best. Also there is zmodeler, and few other not efficient.
  20. You can destroy Blips by this function: function destroyBlipAttachedTo(player) for id, attachedElement in ipairs(getAttachedElements(player)) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end
×
×
  • Create New...