Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. Then you must be having a resource, that cancels the event onPlayerChat and output the message, because it works for me.
  2. It should work without any resource, maybe because your adding a 0, try #FF0000.
  3. That doesn't change anything. Try: function onTopTime (player,newPos,newTime,oldPos,oldTime,random1,random2) local account = getPlayerAccount(player) if account then if not isGuestAccount(account) then if newPos <= 10 then addStat(account, "Top Times", 1) end end end addEvent("onPlayerToptimeImprovement",true) addEventHandler("onPlayerToptimeImprovement",getRootElement(), onTopTime)
  4. You don't have to make a topic for it, just put it in your signature.
  5. That's not a website, he's joking.
  6. function onTopTime (player,newPos,newTime,oldPos,oldTime,random1,random2) if isGuestAccount(getPlayerAccount(player)) == false then if newPos <= 10 then addStat(getPlayerAccount(player), "Top Times", 1) end end end addEvent("onPlayerToptimeImprovement",true) addEventHandler("onPlayerToptimeImprovement",getRootElement(), onTopTime)
  7. JR10

    Ped Animation

    I had my problems with animations before, just use it as a full one, don't loop, and make your timer. I'm not really sure that this time thing works in animations.
  8. JR10

    Destroy blip

    There is no destroyBlipAttachedTo, if you have seen it then it's a custom function: function destroyBlipAttachedTo(player) local attachedElements = getAttachedElements(player) if attachedElements then for i, attachedElement in ipairs(attachedElements) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end end And just use createBlipAttachedTo to create the blip again.
  9. JR10

    txd dff help

    The forum's name is "Scripting", it's for helping with scripts not for helping modding dff, you can find that on youtube. And maybe use 3ds max or zmodeler.
  10. For your first question: the cuffed will enter the seat following the cop's seat. Second one: no he won't enter at all.
  11. Stay on topic please.
  12. currentWeapon = the current weapon's id currentSlot = the current weapon's slot
  13. Glad avatar is not from me. I was using forum.multitheftauto.com, i tried forum.multitheftauto.com the automatically log in worked.
  14. I tick the "Log me automatically on each visit" but it doesn't work, am i the only one having this problem?? EDIT: I cleared cookies, and still, but now i can't upload my avatar, it dissapeared i tried to re upload it, but gives me: Could not upload avatar to ./images/avatars/upload/984afa88a4a9add7eb29755bebc2f8a7_57048.png. I'm using chrome. EDIT: Now i can't see anyone's avatar, i don't think that's normal.
  15. local currentWeapon = getPedWeapon(player) local currentSlot = getPedWeaponSlot(player) currentWeapon = the player's current weapon in hand. currentSlot = the player's current weapon's slot.
  16. JR10

    Help please

    Here: function createTheTeam() terror = createTeam ( "Terrorristen", 200, 50, 0 ) terrorgate = createObject ( 980, -2127.3454589844, -80.345802307129, 27, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTheTeam) function moveGate ( player ) if getTeamName(getPlayerTeam(player)) == "Terrorist" or isPedInVehicle( player ) then if getDistanceBetweenPoints3D ( -2127.3454589844, -80.345802307129, 27, getElementPosition ( player ) ) < 17 then if terrorgateMoving == false then terrorgateMoving = true if terrorgateMoved == false then moveObject ( terrorgate, 3000, -2116.6, -2127.3454589844, -80.345802307129 ) setTimer ( triggerterrorgateVarb, 3000, 1 ) terrorgateMoved = true else moveObject ( terrorgate, 3000, -2127.3454589844, -80.345802307129 ) setTimer ( triggerterrorgateVarb, 3000, 1 ) terrorgateMoved = false end end end elseif not getDistanceBetweenPoints3D ( -2127.3454589844, -80.345802307129, 27, getElementPosition ( player ) ) < 17 then outputChatBox ( "Du bist zu weit entfernt!", 200, 50, 0 ) end end addCommandHandler("tgm", moveGate) The problem was, that he made a function called createTeam, and he handled it to onResourceStart, and in the function he used createTeam, so the function kept calling itself.
  17. 361 downloads and 30 votes, don't just look at posts.
  18. Funmode: https://community.multitheftauto.com/ind ... ls&id=2574 he collected resource files like bank resource, J-Jobs resource and added it in one resource. And he commented that he made it himself.
×
×
  • Create New...