Jump to content

Sticky11

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Sticky11

  1. Hello, I need help with this function, I tried to make the dobule click on gridlist it didn't work why? here is the function: function spawnMyVeh(button, state, absoluteX, absoluteY) triggerServerEvent("SpawnMyVehicle", localPlayer, ID) setTimer(function() vehsa = getElementData(localPlayer,"spawnedcars") or {} vehs = "" for ind,veh in ipairs(vehsa) do if vehs ~= "" then vehs = vehs..", "..veh.."" else vehs = vehs..""..veh.."" end end guiSetText(currentVehLabel, "Current Vehicle: "..vehs) end,1000,1) end addEventHandler ( "onClientDoubleClick", root, spawnMyVeh)
  2. @Walid, can you put to the function, takePlayerMoney when he click?
  3. I need help with this function, check if there's bug in it please. function hospital( player, source, commandName, posX, posY, posZ ) if (source == hospitalButton) then exports.texts:output("You are now on LV Hospital! ", source, 0, 255, 0) setElementPosition ( source, 1614, 1817, 10 ) end end addEventHandler ( "onClientGUIClick", guiRoot, hospital, false )
  4. Just give us a atleast 1 proof that they're CIT resources, He created them, You reported them because they ban you? stop it man, go sleep.. I won't waste my time for you. Posting instead of Majd
  5. Hello community, I wanna add time for frozen player when he use a cmd. Here's code --sets the armor when someone attacked him function buyShield(thePlayer) local money = getPlayerMoney ( thePlayer ) if money >= 5000 then exports.texts:output("You have bought armor for $5000",thePlayer, 0, 255, 0) setPedArmor ( thePlayer, 100 ) takePlayerMoney ( thePlayer, 5000 ) setTimer ( function() setElementFrozen (thePlayer, false) end, 1000, 1 ) else exports.texts:output("You don't have enough money.",thePlayer, 255, 0, 0) end end addCommandHandler ( "buyarmor", buyShield ) He will stay frozen idk why, I wanna frozen time
×
×
  • Create New...