Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. viewtopic.php?f=119&t=41382#p420388
  2. function showspeedo(player) if player ~= localPlayer then return end addEventHandler("onClientPreRender",root,calculateData) addEventHandler("onClientRender",root,drawSpeedometer) end addEventHandler("onClientVehicleEnter", root, showspeedo) function delspeedo(player) if player ~= localPlayer then return end removeEventHandler("onClientPreRender",root,calculateData) removeEventHandler("onClientRender",root,drawSpeedometer) end addEventHandler("onClientVehicleExit", root, delspeedo)
  3. skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, column, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins)
  4. TAPL

    HELP IDS'

    https://community.multitheftauto.com/ind ... ls&id=2322
  5. skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins)
  6. rotation: rotation of the player on spawn.
  7. as you were using it in the image.
  8. i dont mean the map just the defense mod I didn't give you map, i give you the gamemode that include the Police Shield.
  9. theButton = guiCreateButton(0.5, 0.5, 0.2, 0.1, "jail", true) =========================================================================== addEventHandler("onClientGUIClick",root, function() if source == theButton then executeCommandHandler("jail") end end )
  10. This is GameMode already comes with MTA folder. or you can get it from here http://code.google.com/p/mtasa-resources/downloads/list
  11. اها addEventHandler("onClientGUIClick",root, function() if source == theButton then executeCommandHandler("jail") end end )
  12. ~_~ yes good good just remember to put it server side in meta.xml
  13. This in stealth.
  14. قصدك زر لفتح النافذة؟ -- Client Side -- bindKey("F2", "down", "jail")
  15. What is the problem? i don't see any.
  16. TAPL

    Housing

    Download any House System from community and look at their code and you will know how.
  17. for _, team in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(team) then setTeamFriendlyFire(team, false) end end
  18. TAPL

    Help needed

    /debugscript 3?
  19. solidsnake Joined:Fri Sep 11, 2009 4:56 am Solidsnake14 Joined:Thu Sep 24, 2009 10:59 am
  20. Administrating your server https://wiki.multitheftauto.com/wiki/Server_Manual
  21. memberlist.php?mode=viewprofile&u=41631 memberlist.php?mode=viewprofile&u=41876
  22. TAPL

    script error

    and the trigger wrong triggerServerEvent("mechanic:repair", localVehicle, attacker) should be triggerServerEvent("mechanic:repair", attacker, localVehicle)
  23. You're welcome.
  24. i don't see where you set the element data here triggerEvent("onKeypadButtonClicked",source,getElementData(keypadWindow,"keypadID")) the element data must be "a51MainGateKeypadCode" and i still don't understand why you need the table here local keypadCodes = { ["a51MainGateKeypadCode"] = math.random(0, 50000) } you can just do addEvent("verifyKeypadCode",true) addEventHandler("verifyKeypadCode",root,function(code) local keypadCodes = math.random(0, 50000) if tonumber(code) then if tonumber(code) == keypadCodes then triggerClientEvent(client,"onKeypadVerificationSuccessful",client) elseif tonumber(code) >= keypadCodes then triggerClientEvent(client,"oncodeishigher",client) elseif tonumber(code) <= keypadCodes then triggerClientEvent(client,"oncodeislower",client) end end end)
  25. line 13 in my code is 'end' anyway, show your client.
×
×
  • Create New...