Welcome, I’m PokiDev
Preview Video
Preview
How it’s works?
In config.lua is the steam identifier list, if your identifier is in then you can use the /setped command, you can
put any addon ped and any game ped 
Features
· All code is commented (If you’re learning you can look the code commented by me) 
· Simple functionally 
· Steam ID Verification 
Bugs
· There are some small errors but when I have time I fix it 
Download
Github: HERE
I remember, I’m not a professional, I’m only a 13 years old guy what likes scripting 
11 Likes
Nice script! I made a PR to change the __resource to a fxmanifest.
1 Like
Ace permission can be better for flexibility like in-game permission is given etc.
Okay, but I wanted to do with steam id, but thanks <3
1 Like
Citizen.CreateThread(function() -- Thread for loop
PD.CheckSteamIdentifier() -- Function of Check the Steam Id
while true do -- Loop while
Citizen.Wait(150) -- Wait 60 seconds to do the loop
end -- End of while
end)
This is just an endless loop. That while true statement never stops.
Ace permission can use steam id and also it is a built-in Fxserver so you don’t need anything to execute I just write the implantation for your code I will send a pull request.
Yes, I know but I can’t explain myself well, but thanks <3
also this is not good you can cache the steam id or check from server I think is not necessary for do something like that.
Citizen.CreateThread(function() -- Thread for loop
PD.CheckSteamIdentifier() -- Function of Check the Steam Id
while true do -- Loop while
Citizen.Wait(150) -- Wait 60 seconds to do the loop
end -- End of while
end) -- End of the Thread loop
why you put it there it is not execute anything?
if you want to execute something put in in while loop like
Citizen.CreateThread(function()
while true do
PD.CheckSteamIdentifier()
Citizen.Wait(150)
end
end)
You shouldn’t even do that. It’s just gonna spam that function since there is nothing telling the loop to end…
Saying it’s not necessary to do this is one thing, posting bad code is another. Your pull request on his repo is also bad. You don’t fix any of the client code, and your server code just plain doesn’t do anything after the event is triggered. It returns a value to nowhere and doesn’t trigger anything on the client to set hasPermissions.
OP should do something along these lines:
Oof I forgot to SetModelAsNoLongerNeeded(pedhash) after you change the players model. My b.
how to lock, 1 steam id = 1 ped models ?
so 1 player only have 1 ped.
which command can get back to the original people