justn Posted March 30, 2014 Share Posted March 30, 2014 (edited) Ah, so hi, i have made a script for police, but within this script, i would like to ask, how do i get all online players > i just used localPlayer for test local x, y, z = getElementPosition ( localPlayer ) local PCriminalName = getPlayerName ( localPlayer ) local PCriminalWanted = getPlayerWantedLevel(localPlayer) Edited March 30, 2014 by Guest Link to comment
cheez3d Posted March 30, 2014 Share Posted March 30, 2014 for _,player in ipairs(getElementsByType("player")) do -- your code for every player, use the player variable end Link to comment
Anubhav Posted March 30, 2014 Share Posted March 30, 2014 Use root oruse cheez3D's example. I suggest root. Link to comment
justn Posted March 30, 2014 Author Share Posted March 30, 2014 @Cheez3D Thanks man ! @Anubhav I used root, didn't work. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now