This is an advanced idle ped script that you can use to spawn the desired ped with an idle animation. All peds spawned are invincible and cannot be harmed. You can also change the ped model & add another animation.
Add the script into your resources file and add ensure esx_idleped in you server.cfg
In config.lua you can edit the cordinates & model of your desired ped.
This is an example of how it might look: https://cdn.discordapp.com/attachments/1041127464426033295/1056031829322383440/image_5.png
This is made for ESX & Revoked. It has been tested on both frameworks. It will not work for QBCORE.
-- GNU GPL V.3
-- Copyright (C) Komyak - All Rights Reserved
-- You are not allowed to sell this script or re-upload it