-
Posts
296 -
Joined
-
Last visited
Everything posted by TheIceman1
-
Edited You're welcome!
-
Try this: function doafk (commandName) setTimer ( function() outputChatBox("You will be AFK in 5 seconds",source,231,217,176, false ) end, 5000, 1 ) end addCommandHandler("afk", doafk) setTimer ( function() outputChatBox ( "5 second delay text!" ) end, 5000, 1 )
-
Castillo,it outputs r,g,b,but look this this code set only edit[2],edit[3] text.
-
No errors.Yes im 100% sure i clicked "OK"
-
if i delete "element" and "hex" then in edit says "#f0f00"(hex code). addEventHandler("onClientGUIClick", GUIEditor_Button[1], function() exports.cpicker:openPicker(localPlayer, "#FFAA00", "Clan system") end) addEvent ( "onColorPickerOK", true ) addEventHandler("onColorPickerOK", root, function(element, hex, r, g, b) guiSetText(GUIEditor_Edit[2], r ) guiSetText(GUIEditor_Edit[3], g ) guiSetText(GUIEditor_Edit[4], b ) end)
-
Nothing happens.
-
You can use destroyElement
-
addEventHandler("onClientGUIClick", GUIEditor_Button[1], function() exports.cpicker:openPicker(localPlayer, "#FFAA00", "Clan system") end) addEvent ( "onColorPickerOK", true ) addEventHandler("onColorPickerOK", root, function(element, hex, r, g, b) guiSetText(GUIEditor_Edit[2], r ) guiSetText(GUIEditor_Edit[3], g ) guiSetText(GUIEditor_Edit[4], b ) end)
-
Happy birthday norby89!! ) Happy birthday Samer!! )
-
playerSource -> source
-
I dont see anything wrong.Try this: Command: function delbase (commandName, accountName) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' nao tem mais permicao!", source) else outputChatBox ("Nome de conta errado", source) outputChatBox ("Correto: /removerplayer1 [nome]", source) end end end addCommandHandler ("removerplayer1", delbase) function givebase (commandName, accountName) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupAddObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' agora tem permicao para abrir seu portao", source) else outputChatBox ("Nome incorreto", source) outputChatBox ("Correto: /addplayer1 [accountName]", source) end end end addCommandHandler ("addplayer1", givebase) Acl.xml <group name="baseasfarc"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> <group name="baseasfarcdono"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group>
-
This? function enterVehicle ( source, seat, jacked ) local playercar = getPedOccupiedVehicle ( source ) local player = getVehicleController ( playercar ) if(seat == 0) then if (getElementData ( player, "owner" )) then if(getElementData ( playercar, "owner" ) ~= "Nobody" ) then if(getElementData ( playercar, "owner" ) == getPlayerName ( source )) then outputChatBox ("(( Ennek a járműnek a tulajdonosa: "..getElementData ( player, "owner" )..". ))",source, 185,86,185 ) end else local price = getElementData ( playercar, "price" ) triggerClientEvent ( source, "showBuyCar", source, price) toggleAllControls ( source, false, true, false ) return true end end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle )
-
You enter in chat /removeplayer1 or /removeplayer1 ?
-
Men,you must post your problem(error),if you wont post error nobody will help you!
-
You mean this? function enterVehicle ( source, seat, jacked ) local playercar = getPedOccupiedVehicle ( source ) if(seat == 0) then if (getElementData ( playercar, "owner" )) then if(getElementData ( playercar, "owner" ) ~= "Nobody" ) then if(getElementData ( playercar, "owner" ) == getPlayerName ( source )) then outputChatBox ("(( Ennek a járműnek a tulajdonosa: "..getElementData ( playercar, "owner" )..". ))",source, 185,86,185 ) end else local price = getElementData ( playercar, "price" ) triggerClientEvent ( source, "showBuyCar", source, price) toggleAllControls ( source, false, true, false ) return true end end end end bindKey ( "j", "down", enterVehicle )
-
Errors?
-
Why this dont set my clan rank to scoreboard?No errors exports [ "scoreboard" ]:addScoreboardColumn ( "Clan Rank", 3 ) function updatePlayerClanRank ( ) for index, player in ipairs ( getElementsByType "player" ) do if ( getElementData ( player, "rank" ) == "Leader" ) then setElementData(player, "Rank", "Leader") else setElementData ( player, "Rank", getElementData ( player, "rank" ) ) end end end setTimer ( updatePlayerClanRank, 2500, 0 )
-
How can i solve it?I want when i press F3 then players are on grid list but when i click F3 again then it shows me this: function setplayers () local clan = getElementData ( localPlayer, "clan" ) for _, playeritems in ipairs ( getElementsByType ( "player" ) ) do local pclan = getElementData ( playeritems, "clan" ) if ( clan == pclan ) then local row = guiGridListAddRow ( GUIEditor_Grid[2] ) guiGridListSetItemText ( GUIEditor_Grid[2], row, GUIEditor_Column[2], getPlayerName( playeritems ), false, false ) if ( getElementData ( playeritems, "leader" ) ) then guiGridListSetItemText ( GUIEditor_Grid[2], row, GUIEditor_Column[3], "Leader", false, false ) else guiGridListSetItemText ( GUIEditor_Grid[2], row, GUIEditor_Column[3], "Member", false, false ) end end end end bindKey ( "F3", "down", setplayers )
-
EDITED Nothing happens.