Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. apt-get مافيه CentOS في yum الأمر اسمه CentOS في Fedora زي الـ
  2. vTimer = {} addCommandHandler("vip", function(player) if not isTimer(vTimer[player]) then vTimer[player] = setTimer(function(player) vTimer[player] = nil end, 60000, 1, player) outputChatBox("Want to be VIP? add skype Load31", player, 0, 250, 150, false) outputChatBox("VIPs can not abuse their extra skills", player, 0, 250, 150, false) playSoundFrontEnd(player, 5) end end)
  3. Post last code you used where it say bad argument, and try to explain what you are trying to do exactly.
  4. Aggressiveness: Bots will attack any ped, player or bot thats not on it's team.
  5. Please read the arguments carefully. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot#spawnBot
  6. That's because you used createPed but you need to use spawnBot. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  7. function gta (thePlayer) local x,y,z = getElementPosition (thePlayer) Guard = createPed (240,x,y,z) exports.slothbot:setBotFollow (Guard, thePlayer) end addCommandHandler ("guard", gta)
  8. Looks like a mta bug.
  9. ID 3 does not work with CJ skin, i don't know why.
  10. try to attach object id 157
  11. I tested your code and it work.
  12. createTeam("نو تيم") createTeam("شرطة") createTeam("طبيب")
  13. can you give me a script example? Example: ped = createPed(0, getElementPosition(localPlayer)) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local tx, ty, tz = getElementPosition(ped) local dis = getDistanceBetweenPoints2D(x, y, tx, ty) if dis > 2 then setPedControlState(ped, "forwards", true) else setPedControlState(ped, "forwards", false) end setPedRotation(ped, findRotation(tx, ty, x, y)) end) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t end
  14. createTeam setPlayerTeam
  15. Client Side: Line 159 model should be models. Client Side: Line 229 if hitElement == "player" replace "player" with localPlayer. And i don't know what these code do in your code. function joinTeam(source) triggerServerEvent("setRep", localPlayer, localPlayer) guiSetVisible(windowjob, false) showCursor(false) end function removeMedicWindow() guiSetVisible(windowjob, false) showCursor(false) end
  16. ينقل الى قسم البرمجة
  17. هذا مو منتدى للطلبات !هنا للمساعده فقط
  18. ??? وش تقول انت ساعات وش
  19. TAPL

    compiler lua

    https://luac.multitheftauto.com
  20. This is included with the script itself.
  21. I don't get what you trying to do, it's look like you use /fix to repair your own vehicle but then what the point of getting player from name or from id? But anyway mostly same procedure: https://forum.multitheftauto.com/viewtopic.php?f=91&t=67767
  22. TAPL

    Need help

    You're welcome.
  23. TAPL

    Need help

    function onPlayerSpawn () spawnPlayer ( source, 2816.32, -1100.19, 97.93 ) setPlayerTeam ( source, drift ) givePlayerMoney ( source, 50000 ) fadeCamera ( source, true, 3 ) setElementModel ( source, 29 ) outputChatBox ( "Welcome to New Drift Server", source, 255, 0, 0 ) outputChatBox ( "Look at : /cmd and /teleports", source, 0, 255, 0 ) setPlayerNametagColor ( source, 0, 255, 0 ) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerSpawn )
  24. https://forum.multitheftauto.com/viewtopic.php?f=91&t=67595
  25. You're welcome.
×
×
  • Create New...