Admins can give peds to the player using /setped [playerid] [model] command or if they want to browse through the models before giving ped, they can simply just type the command /setped [playerid] and it’ll pop up a menu to select the ped. If you still don’t understand it, please watch the video preview.
Players can access their given ped by using the command /pedmenu from which they can set a given ped as default ped and if they want to reset their skin back, they can do it as well.
Neat concept and use of local functions. Few things though, should probably do some sort of ped validation because if the ped is wrong they would be invisible especially needed since you allow args to be used for the player so if its wrong the command user may not know and the database will be updated as soon as it’s done. It’s also probably a poor idea to run a query on start without at the very least some sort of error logging since the resource is dependent on that.
You could also do some sort of oop and save the player peds this way (on drop and restart) instead of updating the database every single time a command is invoked. While its perm restricted and its not a lot of data, should just be avoided imo but not a big deal.
Thnaks! i have a question, im new on all this world, and im trying to figure out how stop peds (being a cop) like you stop a player. this script could be for that? (sorry for my english)