Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. 1LoL1

    [HELP] Trigger

    So how i can in client or in server if player is in group "Premium" window will showed. If not is in "Premium" window will be not showed only outputChatBox.
  2. 1LoL1

    [HELP] Trigger

    Hello, i created script but doesn't work. I used /test window is showed but outputChatBox is too showed. And i want if player is in group "Premium" then will be show only Window. If player is not in group "Premium" then it says only outputChatBox. I don't know where i'am wrong please can anyone help me? Client: function ShowGUI () TEST() showCursor (true) local screenW,screenH = guiGetScreenSize() local windowW,windowH = guiGetSize(Window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(Window,x,y,false) triggerServerEvent("TESTT", localPlayer) end addCommandHandler("test", ShowGUI) Server: addEvent("TESTT", true) addEventHandler("TESTT", root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Premium")) then else cancelEvent() outputChatBox("bla bla bla", source, 255, 0, 0, true) end end)
  3. 1LoL1

    [HELP] Color

    So what i must edit when i want green "Name" or "Ping" ?
  4. 1LoL1

    [HELP] Color

    It's changed and not work.
  5. 1LoL1

    ACL problem.

    You are Droam|Oussez because he always said fixe
  6. 1LoL1

    Images

    In ScoreBoard or where?
  7. doesnt work ! text wont change You have font? he means "font_file" file.
  8. 1LoL1

    [HELP] Color

    It changed and doesn't work.
  9. add in description: delete This is not my script but it's same resources and codes too he changed only name.
  10. addEvent ("viewGUI", true) function showGui (hitPlayer, matchingDimension) triggerClientEvent ("viewGUI", hitPlayer) outputChatBox ("• Please use freeroam panel to buy items", hitPlayer, 255, 0, 0, true) end addCommandHandler("shop",showGui)
  11. Detele this This this is same so first link delete resource. This
  12. 1LoL1

    [HELP] Color

    I don't understand what do you mean.
  13. 1LoL1

    [HELP] Color

    Hello, in ScoreBoard it's Ping. And my question is how i can change data color? So i must use guiLabelSetColor? i mean this: Now i have: I need:
  14. perro is defined ped? if yes so try this: ped = createPed(id, x, y, z) function kill (source) killPed(ped) end addCommandHandler("kill", kill) If not so try this: function kill (source) killPed(source) end addCommandHandler("kill", kill)
  15. You fixed it! You are a life saver man! I wish I could thank you more! Thank you! You're welcome.
  16. Client-Side is "client.lua" or find in meta.xml.
  17. I'm new to this. Where would I put this code exactly? Thanks for the help. In client-side.
  18. This is for all player in server... for _, v in ipairs(getElementsByType("player")) do
  19. Use this on medic and use this on all setPedAnimation. function onPlayerUseMedicObject(itemName) local playersource = source setPedAnimation(playersource, "BOMBER", "BOM_Plant", -1, false, false, nil, false)
  20. Try this: function maintance () local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do banPlayer(thePlayer, false, false, true, getRootElement(), "banned for maintaince") end end addCommandHandler("maintainceban", adminrules)
  21. 1LoL1

    [HELP] Script

    No i mean this: addCommandHandler ("flip", function (player,command) local money = getPlayerMoney(player) if my code if (tonumber(money) >= 500000) then outputChatBox("500000", player, 255, 255, 255, true) local vehicle = getPedOccupiedVehicle(player) x, y, z = getElementPosition(vehicle) setElementPosition(vehicle, x, y, z + 1) setPlayerMoney(player, 500000) if not (vehicle) then outputChatBox("CARRRRRRRRRRRRRRRRR", player, 255, 0, 0, true) end else outputChatBox("MONEYYYYYYYYYYYYYYYYY", player, 255, 0, 0, true) end else if (tonumber(money) >= 500000) then outputChatBox("500000", player, 255, 255, 255, true) local vehicle = getPedOccupiedVehicle(player) x, y, z = getElementPosition(vehicle) setElementPosition(vehicle, x, y, z + 1) setPlayerMoney(player, 2500) if not (vehicle) then outputChatBox("CARRRRRRRRRRRRRRRRR", player, 255, 0, 0, true) end else outputChatBox("MONEYYYYYYYYYYYYYYYYY", player, 255, 0, 0, true) end end end) but not work
  22. 1LoL1

    [HELP] Script

    Hello, i created script but i don't know how i can fix this. I want to add outputChatBox if player is not in vehicle. if (tonumber(money) >= 500000) then outputChatBox("500000", player, 255, 255, 255, true) local vehicle = getPedOccupiedVehicle(player) x, y, z = getElementPosition(vehicle) setElementPosition(vehicle, x, y, z) setPlayerMoney(player, 500000) if not (vehicle) then outputChatBox("You are not in vehicle !", player, 255, 0, 0, true) end else outputChatBox("You don't have money, you need 500,000$", player, 255, 0, 0, true) end end end)
  23. 1LoL1

    onPlayerChat

    Ok thanks for info.
×
×
  • Create New...