Jump to content

LyricalMM

Members
  • Posts

    81
  • Joined

  • Last visited

Everything posted by LyricalMM

  1. function undercover (player) local vehicle = getPedOccupiedVehicle(player) local id = getElementModel(vehicle) local siren = getElementData(vehicle, "siren") if isPedInVehicle(player) then if id == 560 then if not siren then local Object = createObject(1668,5,5,5) attachElements ( Object, vehicle, -0.4, 0.5, 0.868 ) setElementData(vehicle, "siren", true) else local attachedElements = #getAttachedElements (vehicle) for i,v in ipairs (attachedElements) do detachElements (v, vehicle) setElementData(vehicle, "siren", false) end end end end end addCommandHandler("taxion",undercover) try this or you can make a function to getVehicleByType, then make a db reference
  2. LyricalMM

    [HELP]Gui

    can cancelEvent() use with if statements like if (source==button) then cancelEvent() end
  3. LyricalMM

    [HELP]Gui

    addEventHandler("OnClientGUIClick", GUIEditor.button[1], function() destroyElement(initBrowser); //other codings end, false)
  4. poti raporta catre detinatorul serverului. Asta depinde de memoria pe care o descarci la inceputul jocului.
  5. Asta depinde de la server la server, poate fi de la conexiune, poate fi de la tine. Incearca pe alte servere sau reinstaleaza MTA.
  6. Currently in map editor, multiple objects selected is not possible. You can download J Cody's map editor, you cand find it at the resources forum
  7. nope, just separate lines
  8. It is like the same that i gave him
  9. for example function getAdmins() local players = #getElementsByType("player") local admins = { } local accName = getAccountName ( getPlayerAccount ( value ) ) for key, value in ipairs(players) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then table.insert(admins,value) end end return admins end and local players = exports.yourScript:getAdmins() for k, arrayPlayer in ipairs(players) do if --your condition if it's admin-- then --your code end end
  10. The problem is that you put the variable "thePlayer" and that shows only to you if you are an admin, you need to get other player names and if the other players are admins.
  11. d destroyElement(i) i don't know if it works, but u can try
  12. i can't make a full script for you but you cand try with: createPed createVehicle warpPedIntoVehicle setPedControlState and copy the script from slothbot with following
  13. LyricalMM

    Text

    do you mean to put categories in the gridlist?
  14. local x,y,z = 1, 1, 1 setElementPosition(source, 0, 3400, z)
  15. use: player = getLocalPlayer() team = getPlayerTeam(player) teamName = getTeamName(team) if (teamName == "FCPD") then --Your code end
  16. this is a script questions section not script requests, so please learn coding and try to connect things.
  17. put the meta.xml of the factions resource
  18. disable the default chat script and make one of your own with outputChatBox and custom colors
  19. you can't just make a default respawn vehicle, that depends on you vehicle resource but you can make it with getElementPosition --You can park it getElementData setElementPosition setElementData
  20. the last tought i have is that is something wrong in your showNewInventory function
  21. Code? Maybe you didn't put the params corectly idk
×
×
  • Create New...