Search
 
SCRIPT & CODE EXAMPLE
 

LUA

FiveM Lua How to create table of all online player id

for _, playerId in ipairs(GetPlayers()) do
  local name = GetPlayerName(playerId)
  print(('Player %s with id %i is in the server'):format(name, playerId))
  -- ('%s'):format('text') is same as string.format('%s', 'text)
end
Comment

PREVIOUS NEXT
Code Example
Lua :: lua string to binary 
Lua :: roblox lua how to apply gravity to a object 
Lua :: roblox get how many players in server 
Lua :: for loop in robox 
Lua :: lua table functions 
Lua :: check if player is in group 
Lua :: pico8 draw dot 
Lua :: lua roblox hack scripts 
Lua :: lua code 
Lua :: lagstep roblox 
Lua :: roblox lua scripts 
Matlab :: matlab unix time to datetime 
Matlab :: matlab rlocus 
Matlab :: matlab plotting multiple lines on one graph 
Matlab :: two return variables in matlab 
Basic :: how to send basic auth using fetch 
Basic :: the terminal process failed to launch 
Basic :: VBA Initialise/Initialize String/Number Array (not variant) 
Elixir :: what is elixir language 
Elixir :: elixir strings 
Scala :: else if scala 
Scala :: how to get absolute value in scala 
Actionscript :: vivo y11 not connecting to wifi after update 
Excel :: excel paste across cells 
Perl :: perl hash ref create 
Pascal :: pascal output 
Powershell :: call function powershell 
Clojure :: clojure 
Assembly :: openssl public key der to pem 
Assembly :: assembly language display message 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =