[PAID][RELEASE] Set Ped to Player - DataBase Saving System

Pocetna1

About The Script

  • ESX Script [ 1.2.0+ ] that succeeds in setting any GTA V or custom model to the player and saves it in the database.
  • The script is intended for RP servers but can be used for any type of server.

Purpose of this

  • If you have an RP server and you have restricted the use of peds, this is the right solution.
  • With this script you don’t always have to set the ped when the player connects to the server.

Features

  • Webhook System
  • Low MS - 0.00 - 0.01
  • Configurable in Config
  • You can set any GTAV Ped or Custom Ped
  • It stores Peds in the Database
  • On each spawn of player, the ped automatically sets if the server’s staff has previously set it

Customizability

  • The script is user-friendly.
  • For now, we have 2 versions, Script in English and in the Serbian Language.
  • As for configuration, every detail can be changed in the config.lua file.
    Such as Discord webhook, command, required groups for set ped, and more.

Requirements

Preview

Purchase

Future updates

  • Notifications instead of prints
  • UI
  • Command for reset ped without relog

Support

  • If you have trouble with the script just drop a message below.

Changelog

  • Fixed a set of animal peds
  • Made compatible with ESX Legacy
  • Command /DeletePed - You can delete a ped from the database or temporarily [ You need esx_skin and skinchanger ]
8 Likes

Some Peds are not working do u have a fix for that?

1 Like

Gta V or custom ped?
Give me ped name ( model )

GTAV it self mostly the animals

a_c_rottweiler

1 Like

Do you have anticheat, try to disable it. Then restart server

no i dont have any

1 Like

Replace 15 line - client.lua With :

SetPlayerModel(ClientPlayer, hash)
SetPedDefaultComponentVariation(PlayerPedId())

1 Like

works

2 Likes

Hey can you help me please [ script:mysql-async] [MariaDB:10.3.29-MariaDB-0+deb10u1] [ERROR] [peds] An error happens for query “UPDATE users SET ped = ? WHERE identifier = ? : [“mp_m_niko_01”,false]”: ER_TRUNCATED_WRONG_VALUE: Truncated incorrect DOUBLE value: ‘8b7c0755772e3072963114fd6c0d69d17c7d8c0a’

1 Like

For gta v peds , you can use this website:
https://docs.fivem.net/docs/game-references/ped-models/

Thanks for you fast answear I try to use a custom Ped is there a fix for it? :c

1 Like

Yeah, do you have database?
and do you have a table for saving players data, items…
If you have you need to change ‘users’ with your table
Go check database.sql file and read it

Yeah, you can use a custom Ped, but you need to set up it correctly

Find post on fivem forum how to set up custom ped.

what exactly is that used for?

1 Like

Yes i added the Sql to database and have ped in users. After I join the server this comes up:

[script:peds] SCRIPT ERROR: @peds/server/server.lua:105: attempt to index a nil value (field '?')
[script:peds] > ref (@peds/server/server.lua:105)
[script:peds] > <unknown> (@mysql-async/mysql-async.js:15543)

And after giving a ped this come up:

[script:peds] You have required group >> Ped is set
[  script:mysql-async] [MariaDB:10.3.29-MariaDB-0+deb10u1] [ERROR] [peds] An error happens for query "UPDATE users SET ped = ? WHERE identifier = ? : ["a_f_m_bevhills_01",false]": ER_TRUNCATED_WRONG_VALUE: Truncated incorrect DOUBLE value: '8b7c0755772e3072963114fd6c0d69d17c7d8c0a'
1 Like

maybe a command to reset the ped/skin without an relog

1 Like

Dear Eugen, Script is for setting a gta v or custom ped to Player but with better system

What do you write in the chat when you sets ped?

@_iDecry Thanks for the suggestion, i will try to add in future updates.

Im using /setPed 1 a_f_m_bevhills_01 and the error was gone after login to Steam before join the Server. Tbh thats very old why we need to use Steam these Days. but anyway the Ped is not saved in Database thats the Problem and this error is still there after joining the Server:

[script:peds] SCRIPT ERROR: @peds/server/server.lua:105: attempt to index a nil value (field '?')
[script:peds] > ref (@peds/server/server.lua:105)
[script:peds] > <unknown> (@mysql-async/mysql-async.js:15543)
1 Like