
S3Nn4oXx
Members-
Posts
69 -
Joined
-
Last visited
Everything posted by S3Nn4oXx
-
Hey guys, I made a little script, I forgot a lot of things when I was Inactive I want when I press on a button, I've to wait 5 seconds, and look at this problem, when I press Z - binded the menu doesn't appear.. I know I've to do something with 'onClientRender' function menu() faggot = guiCreateButton(759, 440, 76, 36, "", false) guiSetAlpha(faggot, 0.00) addEventHandler ( "onClientGUIClick", faggot, faggots, false ) fuckyou = guiCreateButton(544, 441, 76, 36, "", false) guiSetAlpha(fuckyou, 0.00) addEventHandler ( "onClientGUIClick", fuckyou, fuckyous, false ) getnoscope = guiCreateButton(759, 326, 76, 36, "", false) guiSetAlpha(getnoscope, 0.00) addEventHandler ( "onClientGUIClick", getnoscope, noscopes, false ) gay = guiCreateButton(544, 323, 76, 36, "", false) guiSetAlpha(gay, 0.00) addEventHandler ( "onClientGUIClick", gay, gays, false ) dxDrawRectangle(853, 250, 0, 185, tocolor(255, 255, 255, 255), false) dxDrawLine(491 - 1, 227 - 1, 491 - 1, 542, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 227 - 1, 491 - 1, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(491 - 1, 542, 875, 542, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 542, 875, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(491, 227, 384, 315, tocolor(27, 27, 27, 202), false) dxDrawLine(491 - 1, 227 - 1, 491 - 1, 271, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 227 - 1, 491 - 1, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(491 - 1, 271, 875, 271, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 271, 875, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(491, 227, 384, 44, tocolor(31, 171, 0, 202), false) dxDrawText("SpRoXx's Sound System", 591, 237, 975, 279, tocolor(255, 255, 255, 255), 1.50, "default", "left", "top", false, false, false, false, false) dxDrawLine(544 - 1, 324 - 1, 544 - 1, 359, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 324 - 1, 544 - 1, 324 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(544 - 1, 359, 618, 359, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 359, 618, 324 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(544, 324, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Gay", 568, 331, 644, 351, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(759 - 1, 327 - 1, 759 - 1, 362, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 327 - 1, 759 - 1, 327 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(759 - 1, 362, 833, 362, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 362, 833, 327 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(759, 327, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("NoScope", 769, 334, 845, 354, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(544 - 1, 442 - 1, 544 - 1, 477, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 442 - 1, 544 - 1, 442 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(544 - 1, 477, 618, 477, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 477, 618, 442 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(544, 442, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Fk you", 559, 450, 635, 470, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(759 - 1, 441 - 1, 759 - 1, 476, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 441 - 1, 759 - 1, 441 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(759 - 1, 476, 833, 476, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 476, 833, 441 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(759, 441, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Faggot !", 769, 449, 845, 469, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawText("Fuck the system | fts", 630, 393, 829, 416, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end function open() if removeEventHandler('onClientRender', root, menu) then removeEventHandler('onClientRender', root, menu) guiSetVisible(fuckyou,false) guiSetVisible(getnoscope,false) guiSetVisible(gay,false) guiSetVisible(faggot,false) showCursor(false) else addEventHandler('onClientRender', root, menu) guiSetVisible(fuckyou,true) guiSetVisible(getnoscope,true) guiSetVisible(gay,true) guiSetVisible(faggot,false) showCursor(true) end end bindKey( "F2", "down", open) function faggots( button ) if button == "left" then local sound = playSound("sounds/faggot.mp3") end end function gays( button ) if button == "left" then local sound = playSound("sounds/gay.mp3") end end function noscopes( button ) if button == "left" then local sound = playSound("sounds/noscope.mp3") end end function fuckyous( button ) if button == "left" then local sound = playSound("sounds/fuckyou.mp3") end end
-
If I download this Overdose mod I got banned yasterday with this reason "TRAINER" for 24 hours !, Do you think it's because this mod or it's another thing?
-
player is not defined, instead of you can use thePlayer because it's defined in your function . function vehspawner( thePlayer ,commandName, ID) local x, y ,z = getElementPosition ( thePlayer ) local team = getPlayerTeam ( thePlayer ) if (team == Staff )then succes = createVehicle ( ID, x+2 , y+2 , z ) if (succes) then outputChatBox("Am spawnat masina", source) else outputChatBox("Am esuat", source) end else outputChatBox("Nu esti Staff", source) end end addCommandHandler("sv",vehspawner)
-
[21:25:56] WARNING: Ach\script.lua:4: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got resource-data] [21:25:56] WARNING: Ach\script.lua:5: Bad argument @ 'isGuestAccount' [Expected account at argument 1, got boolean] [21:25:56] WARNING: Ach\script.lua:6: Bad argument @ 'getAccountData' [Expected account at argument 1, got player] [21:25:56] WARNING: Ach\script.lua:7: Bad argument @ 'getPlayerMoney' [Expected player at argument 1, got resource-data] [21:25:56] ERROR: Ach\script.lua:7: attempt to compare number with boolean
-
it was it was ERROR: Loading script failed: Ach\script.lua:2: 'do' expected near 'getElementsByType' when I changed it, it doesn't show up
-
<meta> <script src="script.lua" type="server" /> </meta> I am not that stupid sir ;D == Mr.Pres[T]ege It's still not working function RichmanAch ( thePlayer ) local plr = getElementsByType( "player" ) for i,thePlayer in ipairs(plr) do local PlrAccount = getPlayerAccount(thePlayer) if not isGuestAccount( PlrAccount ) then if getAccountData(PlrAccount,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), 255, 0, 0, true) setAccountData(PlrAccount, "RichMan:Achievement", "done") end end end end end addEventHandler("onResourceStart", getRootElement(), RichmanAch)
-
addEvent('onBuyWeapon',true) addEventHandler('onBuyWeapon',root, function ( id , price, thePlayer) if ( tonumber ( price ) and getWeaponIDFromName ( id ) ) then if ( getPlayerMoney ( client ) >= tonumber ( price ) ) then takePlayerMoney ( client , tonumber ( price ) ) setPedStat(thePlayer, 23, 999) end end end )
-
I don't get it look here I reiterated the account already at line 2 "local PlrAccount = getPlayerAccount(thePlayer)" [15:15:40] WARNING: Ach\script.lua:2: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got resource-data] [15:15:40] WARNING: Ach\script.lua:3: Bad argument @ 'isGuestAccount' [Expected account at argument 1, got boolean] [15:15:40] WARNING: Ach\script.lua:4: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] [15:15:40] WARNING: Ach\script.lua:5: Bad argument @ 'getPlayerMoney' [Expected player at argument 1, got resource-data] [15:15:40] ERROR: Ach\script.lua:5: attempt to compare number with boolean function RichmanAch(thePlayer) local PlrAccount = getPlayerAccount(thePlayer) if not isGuestAccount( PlrAccount ) then if getAccountData(PlrAccount,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), 255, 0, 0, true) setAccountData(PlrAccount, "RichMan:Achievement", "done") end end end end addEventHandler("onResourceStart", getRootElement(), RichmanAch)
-
When I trigger the event from server side, It doesn't work too Should I remove onClientRender event?
-
When I reach 1m It doesn't show a message + no debug message color = 255,0,0 function RichmanAch(thePlayer) local account = getPlayerAccount(thePlayer) if not isGuestAccount( account ) then if getAccountData(account,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), color, true) setAccountData(account, "RichMan:Achievement", "done") end end end end addEventHandler("onClientRender", getRootElement(), RichmanAch)
-
If I make Achievement for a richman If the player has 1m It shows a message to him I just want to know how to make it once, If I have 1m so the Achievement is open I don't want If I lose money and it's 999k when I reach 1m so it doesn't show again Idon't want it like this
-
How to make that when the player is Registered (On the first time) a message appears and give the player 10000 I know to make the script but I don't know how to do it just once, when the player Is register
-
DAMN I never won in this thing but lets try 62
-
guiGetEnabled guiSetEnabled getAccountName isGuestAccount getPlayerAccount isObjectInACLGroup aclGetGroup ==Triggers triggerServerEvent triggerClientEvent
-
function ChokingSystem() local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 329) / 2, (screenH - 227) / 2, 329, 227, "Choking System @SpRoXx", false) guiWindowSetSizable(Window, false) StartC = guiCreateButton(238, 187, 82, 31, "StartC", false, Window) guiSetProperty(StartC, "NormalTextColour", "FFAAAAAA") gridlist = guiCreateGridList(10, 41, 176, 174, false, Window) guiGridListAddColumn(gridlist, "Players", 0.9) label = guiCreateLabel(216, 41, 94, 37, "Select a player", false, Window) guiSetFont(label, "default-bold-small") StopC = guiCreateButton(238, 146, 82, 31, "StopC", false, Window) guiSetProperty(StopC, "NormalTextColour", "FFAAAAAA") CloseB = guiCreateButton(238, 105, 82, 31, "Close", false, Window) guiSetProperty(CloseB, "NormalTextColour", "FFAAAAAA") showCursor(true) addEventHandler ( "onClientGUIClick", CloseB, closeL, false ) end addCommandHandler("c", ChokingSystem) function fillTable() playerTable = {} for i,player in ipairs(getElementsByType("player")) do table.insert(playerTable,getPlayerNametagText(player)) end for k,v in pairs(playerTable) do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row,1, tostring(v[1]), false, false) end end function closeL( button ) if button == "left" then guiSetVisible(Window ,false) showCursor(false) end end addEventHandler ( "onClientGUIClick", CloseB, closeL, false ) No Debug but the players doesn't appear in the gridlist
-
gridlist = guiCreateGridList(565, 309, 249, 268, false) guiGridListAddColumn(gridlist, "Players", 0.9) This is the gridlist script how to add the players to this gridlist?
-
I need help, I created a script but I don't know how to make that all the players appears in the gridlist and if I click on them and press on the button so it affect on them
-
You have some mistakes there start = getTickCount() function loading() local now = getTickCount() with = interpolateBetween(0,0,0,532,0,0, (now - start) / (( start + 10000 ) - start ) , "Linear" ) dxDrawRectangle(142, 222, 532, 41, tocolor(0, 0, 0, 255), false) dxDrawRectangle(142, 222, with, 41, tocolor(55, 215, 0, 255), false) end addEventHandler("onClientRender",root,loading) bindKey("c","down",function () local now = getTickCount() start = getTickCount() with = interpolateBetween(with,0,0,0,0,0, (now - start) / (( start + 3000 ) - start ) , "Linear" ) givePlayerMoney(5000) end )
-
Cool i learned something new, When i create a table i must put . example myTable. ? btw Thanks dude