esx_core icon indicating copy to clipboard operation
esx_core copied to clipboard

feat(es_extended): Add QOL Functions

Open Meyndflay opened this issue 5 months ago • 1 comments

Description

This PR adds a client function that makes an entity the direction of another, and a shared function that sanitizes a string.

Motivation

I found that I've been using such functions very often, and thought that i'd be nice to have as part of the framework's functions.

Implementation Details


Usage Example

-- Client
local ped = PlayerPedId()
local obj = CreateObject(hash, 0.0, 0.0, 0.0, false, true, true) 

ESX.FaceEntity(ped, obj)

-- Shared
local myString = "This is a string! \'\""
local sanitizedString = ESX.SanitizeString(myString)

--  Niche uses but useful for when you need to sanitize strings.

PR Checklist

  • [X] My commit messages and PR title follow the Conventional Commits standard.
  • [ ] My changes have been tested locally and function as expected.
  • [X] My PR does not introduce any breaking changes.
  • [X] I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

Meyndflay avatar Jun 16 '25 17:06 Meyndflay

I like it , though am going to make as draft, since we are going to be doing an area specifically for functions like these very shortly :)

Mycroft-Studios avatar Jun 16 '25 18:06 Mycroft-Studios

@Meyndflay There soon will be a place for these changes 👍🏽 Thanks!

Kenshiin13 avatar Jul 06 '25 08:07 Kenshiin13

@Meyndflay There soon will be a place for these changes 👍🏽 Thanks!

We need to finally implement it or reject/change

Kr3mu avatar Sep 02 '25 09:09 Kr3mu

We need to finally implement it or reject/change

We are waiting for the lib.

Kenshiin13 avatar Sep 02 '25 11:09 Kenshiin13

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Meyndflay seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Nov 16 '25 20:11 CLAassistant