-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
You need dxCreateTexture
-
function Payday() local time = getRealTime() local hour = time.hour local payTime = (hour+60)*60 D = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24} for _,hour in ipairs(D) do outputChatBox("Your Payday Is Here") setTimer(payday,payTime, 1) end end addEventHandler("onResourceStart",root, Payday)
-
function Payday() local Hour = Time.Hour local payTime = Hour+60*60 D = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24] for _,Hour in ipairs(D) do outputChatBox("Your Payday Is Here") setTimer(payday,payTime, 1) end end addEventHandler("onResourceStart",root, payday)
-
addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 366) / 2, (screenH - 416) / 2, 366, 416, "Walking Styles", false) guiWindowSetSizable(window, false) gridlist = guiCreateGridList(29, 41, 308, 320, false, window) guiGridListAddColumn(gridlist, "ID", 0.3) guiGridListAddColumn(gridlist, "Name", 0.7) for i = 1, 18 do row= guiGridListAddRow(gridlist) end guiGridListSetItemText(gridlist, row, 1, "118", false, false) guiGridListSetItemText(gridlist, row, 2, "Man", false, false) guiGridListSetItemText(gridlist, row, 1, "119", false, false) guiGridListSetItemText(gridlist, row, 2, "Shuffle", false, false) guiGridListSetItemText(gridlist, row, 1, "120", false, false) guiGridListSetItemText(gridlist, row, 2, "Old Man", false, false) guiGridListSetItemText(gridlist, row, 1, "121", false, false) guiGridListSetItemText(gridlist, row, 2, "Gangster 1", false, false) guiGridListSetItemText(gridlist, row, 1, "122", false, false) guiGridListSetItemText(gridlist, row, 2, "Gangster 2", false, false) guiGridListSetItemText(gridlist, row, 1, "123", false, false) guiGridListSetItemText(gridlist, row, 2, "Old Fat Man", false, false) guiGridListSetItemText(gridlist, row, 1, "124", false, false) guiGridListSetItemText(gridlist, row, 2, "Fat Man", false, false) guiGridListSetItemText(gridlist, row, 1, "125", false, false) guiGridListSetItemText(gridlist, row, 2, "Jogger", false, false) guiGridListSetItemText(gridlist, row, 1, "126", false, false) guiGridListSetItemText(gridlist, row, 2, "Drunk", false, false) guiGridListSetItemText(gridlist, row, 1, "127", false, false) guiGridListSetItemText(gridlist, row, 2, "Blind", false, false) guiGridListSetItemText(gridlist, row, 1, "128", false, false) guiGridListSetItemText(gridlist, row, 2, "SWAT", false, false) guiGridListSetItemText(gridlist, row, 1, "129", false, false) guiGridListSetItemText(gridlist, row, 2, "Woman", false, false) guiGridListSetItemText(gridlist, row, 1, "131", false, false) guiGridListSetItemText(gridlist, row, 2, "Busy Woman", false, false) guiGridListSetItemText(gridlist, row, 1, "132", false, false) guiGridListSetItemText(gridlist, row, 2, "Sexy Woman", false, false) guiGridListSetItemText(gridlist, row, 1, "133", false, false) guiGridListSetItemText(gridlist, row, 2, "Hooker", false, false) guiGridListSetItemText(gridlist, row, 1, "134", false, false) guiGridListSetItemText(gridlist, row, 2, "Old Woman", false, false) guiGridListSetItemText(gridlist, row, 1, "135", false, false) guiGridListSetItemText(gridlist, row, 2, "Fat Woman", false, false) guiGridListSetItemText(gridlist, row, 1, "136", false, false) guiGridListSetItemText(gridlist, row, 2, "Jogging Woman", false, false) acceptbtn = guiCreateButton(39, 373, 126, 33, "Accept", false, window) closebtn = guiCreateButton(201, 373, 126, 33, "Close", false, window) guiSetVisible(window, false) addEventHandler("onClientGUIClick", closebtn, closemenu, false) addEventHandler("onClientGUIClick", acceptbtn, acceptanim, false) end ) function closemenu(wid) guiSetVisible(window, false) showCursor(false) end function acceptanim() local selectedRow, selectedCol = guiGridListGetSelectedItem(gridlist) sid = guiGridListGetItemText( gridlist, selectedRow, selectedCol) triggerServerEvent("setWalkStyle",localPlayer,sid) guiSetVisible(window, false) showCursor(false) end addCommandHandler("s", function() guiSetVisible(window, true) showCursor(true) end)
-
local Time = getRealTime() local Hour = Time.Hour local payTime = Hour+60*60 -- that put it on Timer 2 argument setTimer
-
local Time = getRealTime() local Hour = Time.Hour local Minute = Time.Minute local payTime = Hour+Minute*60*60*1000 -- that put it on Timer 2 argument setTimer Like this
-
Yes i know it but what message?
-
If you want get a player ip use this getPlayerIP
-
Make sure you open the port at Mode and firewall with the right protocol
-
You open port to your computer farewall?
-
addEventHandler("onResourceStart", resourceRoot, function() dbQuery(function(queryHandler) local results = dbPoll(queryHandler, 0) for k, row in ipairs(results) do marker = createMarker(row.x, row.y, row.z, "corona", 1.1, 255, 0, 0, 255) end end, getConnection(), "SELECT * FROM stunts LIMIT 1") end) try this
-
function drug( ) local x, y, z = getElementPosition ( source ) marker = createMarker ( x, y, z-1, "cylinder", 1.5, 255, 255, 0, 170 ) end addEvent( "onClick", true ) addEventHandler("onClick", root , drug) function destroyMarker( ) if isElement( marker) then destroyElement(marker) end end addEvent( "onClick2", true ) addEventHandler("onClick2", root , destroyMarker) function asignarValoresCripa(source, valorCripa) setAccountData(getPlayerAccount(source) ,"valorCripa", valorCripa) end addEvent( "addCripaCost", true ) addEventHandler("addCripaCost", root , asignarValoresCripa) function darValoresCripa (p) getAccountData(getPlayerAccount(p) ,"valorCripa") end addEvent( "valorCripa", true ) addEventHandler("valorCripa", root , darValoresCripa)
-
We are not your selve also someone already give you what you need
-
function bazKardanBox (thePlayer, command) local account = getPlayerAccount(thePlayer) local box = getAccountData(account, "pBox") local jayeze = math.random(50000,300000) if ( box and box > 0 ) then triggerClientEvent(thePlayer,"sedabox", root) givePlayerMoney(thePlayer, jayeze) setAccountData( account,"pBox", box-1) outputChatBox("#FF00FF[Pro-Box]: #ffffff"..getPlayerName(thePlayer).." Az Box Mablagh #FF00FF$"..jayeze.." #ffffffBe Dast Avord!", root, 255, 255, 255, true) else if box == 0 then outputChatBox( "#ff0000[Error]: #ffffffShoma Box Nadarid!", thePlayer, 255, 0, 0,true ) else setAccountData( account,"pBox", 0) outputChatBox( "#ff0000[Error]: #ffffffShoma Box Nadarid!", thePlayer, 255, 0, 0,true ) end end end addCommandHandler("openbox", bazKardanBox)
-
hmm i don't see something
-
in thath code you post have 7 lines above not 8
-
function dadanBox (thePlayer, command, player, tedad) local taraf = getPlayerFromName (player) local tedad = tonumber(tedad) local account = getPlayerAccount(taraf) local box = getAccountData(account, "tedad") local esmAdmin = getPlayerName(thePlayer) local esmesh = getPlayerName(taraf) if taraf then if tedad then setAccountData( account,"tedad", box+tedad) outputChatBox("#00ff00[Done]: #ffffffShoma Be #00ff00"..esmesh.." #ffffffTedad "..tedad.." Box Dadid!", thePlayer, 255, 255, 255, true) outputChatBox("#ffff00[Info]: #ffffffAdmin #ffff00"..esmAdmin.." #ffffffBe Shoma #ffff00"..tedad.." #ffffffBox Dad!", taraf, 255, 255, 255, true) else outputChatBox("#ff0000[Error]: #ffffffTedad Box Ra Vared Konid!", thePlayer, 255, 255, 255, true) end else outputChatBox("#00ff00Bezan: /givebox <PartOfName> <Tedad>", thePlayer, 255, 255, 255, true) end end addCommandHandler("givebox", dadanBox) function boxMan (thePlayer, command, tedad) local tedad = tonumber(tedad) local account = getPlayerAccount(thePlayer) local box = getAccountData(account, "tedad") outputChatBox("#00ff00Shoma #ffffff"..box.." #00ff00Box Darid!", thePlayer, 255, 255, 255, true) end addCommandHandler("mybox", boxMan)
-
function dadanBox (thePlayer, command, player, tedad) local taraf = getPlayerFromName (player) local tedad = tonumber(tedad) local account = getPlayerAccount(taraf) local box = getAccountData(account, tedad) local esmAdmin = getPlayerName(thePlayer) local esmesh = getPlayerName(taraf) if taraf then if tedad then setAccountData( account,"tedad" box+tedad) outputChatBox("#00ff00[Done]: #ffffffShoma Be #00ff00"..esmesh.." #ffffffTedad "..tedad.." Box Dadid!", thePlayer, 255, 255, 255, true) outputChatBox("#ffff00[Info]: #ffffffAdmin #ffff00"..esmAdmin.." #ffffffBe Shoma #ffff00"..tedad.." #ffffffBox Dad!", taraf, 255, 255, 255, true) else outputChatBox("#ff0000[Error]: #ffffffTedad Box Ra Vared Konid!", thePlayer, 255, 255, 255, true) end else outputChatBox("#00ff00Bezan: /givebox <PartOfName> <Tedad>", thePlayer, 255, 255, 255, true) end end addCommandHandler("givebox", dadanBox) function boxMan (thePlayer, command, tedad) local tedad = tonumber(tedad) local account = getPlayerAccount(thePlayer) local box = getAccountData(account, "tedad") outputChatBox("#00ff00Shoma #ffffff"..box.." #00ff00Box Darid!", thePlayer, 255, 255, 255, true) end addCommandHandler("mybox", boxMan)
-
first account Data store string need string the value second
-
You mess the code that why at my work fine