• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About xXGhostXx

  • Rank
    Red-Headed Stepchild
  • Birthday 10/01/1990


  • Gang
  • Location
    Los Santos
  • Occupation
    San Fierro

Recent Profile Visitors

680 profile views
  1. Working because i want add allowing characters in table.
  2. Hi guys. I try to use string.find with table. characters = { ["a"] = true, ["b"] = true, ["c"] = true, } function test (username) if string.find(username, characters[username]) then else outputChatBox("This is invalid character!",source) end end What is my problem ?
  3. function clickSound () local sound = playSound("click.mp3") end addEventHandler("onClientClick", getRootElement(), clickSound) This is true ?
  4. Hi guys. Do you have a idea for add sound for on client click event ?
  5. Hi guys. Do you have a idea for make Heist system for bank robbery or ... like: Player can make party with /party command and /invite 3 players for make robbery group. Heist system have 4 number slots with party leader. After /invite a player name triggered to gui and set the text. After it's done bank robbery for party members and leaders set wanted to 6. Please give me a idea and function and method. Thanks all.
  6. Thanks you can give me table for this code ?
  7. Yes i fixed but i want police faction respawn police cars. FBI faction respawn fbi cars. or ... addCommandHandler("rv", function (player, command) local vehicles = getElementsByType("vehicle") for i = 1, #vehicles do local vehicle = vehicles[i] if vehicle then local vehid = getElementID(vehicle) local faction = getElementData(player, "faction") if facVehsTable[vehid] and facVehsTable[vehid][faction] then respawnVehicle(vehicle) end end end end) In this code i want get my faction and find in the table my faction id and get the car and respawn car geted!
  8. Dear i want if you are police faction you can respawn police cars or if you are medic faction respawn medic cars with /rv command ! And "local faction = getElementData(player, "faction")" for get my faction for respawn my faction cars
  9. Thanks for your help. I have a problem. I trying to make respawn faction vehicles. For example: i am police officer and i want respawn my faction cars or i am medic and i want respawn my faction cars. addCommandHandler("rv", function(thePlayer, command) for index, Fac_Cars in ipairs(getElementsByType("vehicle")) do local vehid = getElementID(Fac_Cars) local faction = getElementData(thePlayer, "faction") if facVehsTable[vehid] then respawnVehicle(Fac_Cars) end end end) What is problem ?
  10. How ? Please give me?
  11. Thanks, how can i set 2 faction for some cars. for example police department and federal police can enter the "Police" vehicle but Medic cant enter the car.
  12. Thanks but i want [1] for faction id and "Police" element car id. If my faction id = 1 for enter "Police" car id or if my faction id = 2 for enter "Medic" car id.
  13. Hi guys. What is problem in my table ? local FacVehsTable = { { 1, "Police" }, { 2, "Medic" }, } function FactionVehEnter ( player, seat, jacked ) if seat == 0 then local vehid = getElementID ( source ) local faction = getElementData(player, "faction") if vehid == FacVehsTable[faction][2] then if faction ~= FacVehsTable[faction][1] then cancelEvent() outputChatBox ( "#ff0000This is faction vehicle!, player, 230,0,0 ,true) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), FactionVehEnter ) I want when player enter the faction cars if not "faction" element data player == faction id vehicles then cancelEvent
  14. https://wiki.multitheftauto.com/wiki/ShowingImage I cant find it