Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. for i,v in pairs(getElementsByType("vehicle")) do destroyElement(v) end
  2. Your script must be set as client side in meta.xml.
  3. No, that's wrong. function wasted (thePlayer) local sound = playSound("wasted.mp3",false) setSoundVolume(sound, 0.9) image = guiCreateStaticImage( 20, 200, 100, 100, "imagename.png", false ) setTimer(destroyElement, 5000, 1, image) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), wasted )
  4. Use guiCreateStaticImage or draw one with dxDrawImage.
  5. "setPlayerNametagColor ( thePlayer, true )" What is that o_O, your code is the same as his, but with that line which will cause a bad argument, setPlayerNametagColor uses RED, GREEN, BLUE, not a boolean.
  6. Castillo

    Objs!

    destroyObject? I would use: destroyElement instead. setTimer(destroyElement,60000,1,obj)
  7. You can't change the sounds, you could create your own, but the original will be there still.
  8. What does the scripter get's? will you pay him for his/her work done?
  9. Because you got a lot of errors in createBlip function. Emmetgun = createBlip ( 1366.7922363281, -1274.9412841797, -1274.9412841797, 0, 2, 255, 0, 0, 255, 0, 99999, getRootElement())
  10. You added "img/display.png" to the meta.xml? Format:
  11. Holsten, please, don't double-post, you could have used the "EDIT" button instead. P.S: Your example is wrong. addEvent("enableInvisible", true) addEventHandler("enableInvisible", root, function(player) setPlayerNametagShowing ( player, false ) setTimer( setPlayerNametagShowing, 60000, 1, player, true) end ) addCommandHandler("invisible", function (player) triggerEvent("enableInvisible",player,player) end) When you type '/invisible' in the chat/client console it should trigger the event to make you 'invisible'.
  12. Castillo

    group system

    I would suggest scripting a system with databases or something, it's easier than editing the acl.
  13. Well, there we're two resources that added something like GTA SP, but they we'rent as good as the originals. Also, I don't know where can you get these resources.
  14. I would suggest you to combine both scripts, chat + censor.
  15. Castillo

    Birthday.

    Happy birthday! I wish you the best!
  16. Castillo

    Jobs?

    A lot of things are possible in MTA, much more than that, but you'll need scripting knowledge for this.
  17. Car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2529
  18. Car mod: https://community.multitheftauto.com/ind ... ls&id=2528
  19. Well... since he said "lose" I suposed he wanted to do it anyway, without checking his/her money.
  20. Try this: --client side function armyspawn(button,state) if button == "left" and state == "up" then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),207.00390625,1865.75390625,13.140625,0,287) closeWindow() removecursor() end end --server side function moveThePlayer(x,y,z,rotation,skin) if x and y and z and rotation and skin then spawnPlayer(source,x,y,z,rotation,skin) setCameraTarget(source,source) end end addEvent("movePlayerToPosition",true) addEventHandler("movePlayerToPosition",root,moveThePlayer) As you can see i'm passing "skin" argument to the server side.
  21. function armyspawn(button,state) if button == "left" and state == "up" then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),207.00390625,1865.75390625,13.140625,0) closeWindow() removecursor() armyskin(getLocalPlayer()) end end function armyskin(thePlayer) setElementModel ( thePlayer, 287 ) end Try that.
  22. addCommandHandler( "mend", function( thePlayer, commandName, who ) if exports.players:isLoggedIn( thePlayer ) then local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 7 ) if inPD and factionTag then fixVehicle(getPedOccupiedVehicle(getPlayerFromName(who))) if getPlayerMoney(thePlayer) >= 100 then takePlayerMoney(thePlayer, 100) end else outputChatBox( "(( You are not in a Government faction. ))", thePlayer, 255, 0, 0 ) end end end ) Should check if the player has more than $100 or $100 and take it.
  23. Drawtag: https://community.multitheftauto.com/index.php?p= ... ls&id=2518 This script was made by DoomedSpaceMarine if i'm right. Edit: Wait... seems like he's giving credits to the real author.
×
×
  • Create New...