
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
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.
-
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)
-
So what i must edit when i want green "Name" or "Ping" ?
-
You are Droam|Oussez because he always said fixe
-
doesnt work ! text wont change You have font? he means "font_file" file.
-
add in description: delete This is not my script but it's same resources and codes too he changed only name.
-
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)
-
Detele this This this is same so first link delete resource. This
-
I don't understand what do you mean.
-
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:
-
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)
-
You fixed it! You are a life saver man! I wish I could thank you more! Thank you! You're welcome.
-
Client-Side is "client.lua" or find in meta.xml.
-
I'm new to this. Where would I put this code exactly? Thanks for the help. In client-side.
-
This is for all player in server... for _, v in ipairs(getElementsByType("player")) do
-
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)
-
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)
-
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
-
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)