[RELEASE] pd-peds a new easy ped system v.0.1

Welcome, I’m PokiDev

Preview Video
:arrow_forward: 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 :bust_in_silhouette:

Features
· All code is commented (If you’re learning you can look the code commented by me) :speech_balloon:
· Simple functionally :computer:
· Steam ID Verification :white_check_mark:

Bugs
· There are some small errors but when I have time I fix it :wrench:

Download
Github: HERE

I remember, I’m not a professional, I’m only a 13 years old guy what likes scripting :slight_smile:

11 Likes

Nice script! I made a PR to change the __resource to a fxmanifest.

1 Like

Alright, thank you <3

1 Like

esta re bueno amigo

1 Like

Gracias

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.

Okay, thanks

1 Like

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…

You shouldn’t even do that. It’s just gonna spam that function since there is nothing telling the loop to end…

Yeah, I said the same.

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

Thanks a lot