esx_core
esx_core copied to clipboard
feat(es_extended): Add QOL Functions
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.
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 :)
@Meyndflay There soon will be a place for these changes 👍🏽 Thanks!
@Meyndflay There soon will be a place for these changes 👍🏽 Thanks!
We need to finally implement it or reject/change
We need to finally implement it or reject/change
We are waiting for the lib.
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.