-
Posts
1,390 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Et-win
-
Is it synced with the server then, or something? Because how do you want to replace the original ID with a something different while other players have the same ID which is the original?
-
The database.
-
The problem could be litterly anything. Check /debugscript 3 first of all lol.
-
Not sure if stolen or just released and allowed to use it: https://forum.multitheftauto.com/viewtopic.php?f=91&t=52674 (@ Timers)
-
1 topic is enough, really.
-
The message says it all.... You forgot ')' to close something. (outputChatBox I suppose)
-
You didn't say that before.
-
If your server isn't even started yet, then what's the point of making it when you are not even sure it works directly?
-
isElement
-
...You have no idea what you are doing, right? First get all accounts (getAccounts()) Then use a loop on that table. Then get the player who is using the account at that moment (getAccountPlayer()) If it is false it's not in use so you could call that offline, otherwise online.
-
--And: getAccountPlayer And: Go read Wiki immediately now before saying something that isn't true......
-
local team = getTeamFromName ( Team1 ) Where is Team1 defined?
-
players = 0 local screenWidth,screenHeight = guiGetScreenSize() function drawCount() dxDrawText(tostring(players),screenWidth/2,screenHeight/2,screenWidth/2+150,screenHeight/2+150,tocolor(0,0,255,255),1,"bankgothic") end addEventHandler("onClientRender",root,drawCount) function totalFreeroamPlayerNumber(playerCount) if playerCount then players = playerCount else return end end addEvent("onPlayerCountChange",true) addEventHandler("onPlayerCountChange",root,totalFreeroamPlayerNumber)
-
addEvent("onPlayerCountChange", true) Add that too. (Above addEventHandler)
-
u must put getElementType in First and u must Check if player have team then Check his team He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue. Btw: You missed an end.
-
I lol'd, yes it's fixed. But I still don't know how because I can't find 'marker[4]' in the script, or he didn't post the whole script
-
^ There is no jails[][4] index? There are only 3
-
--Server-Side: function gAccountsToSend() local gAccounts = {} local gPlayers = getElementsByType("player") if (gPlayers ~= false) and (gPlayers ~= nil) then for placeNumber, playerData in ipairs(gPlayers) do local gAccount = getPlayerAccount(playerData) if (gAccount ~= false) and (gAccount ~= nil) then local gAccountName = getAccountName(gAccount) if (gAccountName ~= false) and (gAccountName ~= nil) then table.insert(gAccounts, gAccountName) end end end end triggerClientEvent(source, "onSendAccountNamesToClient", getRootElement(), gAccounts) end addEvent("onClientRequestAccountNames", true) addEventHandler("onClientRequestAccountNames", getRootElement(), gAccountsToSend) --Client-Side: local tab = {} local tabpanel = {} local label = {} local button = {} local edit = {} local player = localPlayer function fGridList(gAccounts) if (isElement(accountGrid)) then for placeNumber, stringData in ipairs(gAccounts) do guiGridListSetItemText(accountGrid, guiGridListAddRow(accountGrid), accountColumn, stringData, false, false) end end end addEvent("onSendAccountNamesToClient", true) addEventHandler("onSendAccountNamesToClient", getRootElement(), fGridList) function gridlist() local screenWidth, screenHeight = guiGetScreenSize() window1 = guiCreateWindow(screenWidth * 0.24, screenHeight * 0.2, 771, 457, "TEST", false) guiWindowSetSizable(window1, false) guiSetVisible(window1,false) accountGrid = guiCreateGridList(9, 23, 249, 228, false, window1) guiGridListSetSelectionMode(accountGrid, 2) accountColumn = guiGridListAddColumn(accountGrid, "Player", 0.85) triggerServerEvent("onClientRequestAccountNames", player) end addEventHandler("onClientResourceStart", resourceRoot, gridlist) addEventHandler("onClientResourceStart",resourceRoot, function() if not isElement(window1) then gridlist() end bindKey ( "F3", "down", openGui ) end ) function openGui() if not isElement(window1) then gridlist() end if not guiGetVisible(window1) then --stats() guiSetVisible ( window1, true ) showCursor(true) else guiSetVisible ( window1, false ) showCursor(false) end end If not working, use debugscript 3
-
Lol? I make my markers like this I change the value of Marker variable -.-. local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) How could I smell that? I didn't see any script lol.
-
Check if the source == marker, lol.
-
onVehicleEnter isObjectInACLGroup getElementModel
