Commit Graph

113 Commits

Author SHA1 Message Date
Linden 08088cc82a Merge branch 'pr/1148' into legacy 2021-05-16 19:31:19 +10:00
MiddleSkillz 7e00e1212c tweak(client/functions): Updates to Events & Functions
Updated some events and functions to preserve some backwards compatibility with 4head scripts.
2021-05-12 09:51:10 -06:00
thelindat fe86ef5f56 Minor change to functions
Add a TriggerEvent to `ESX.SetPlayerData` so we can tell other resources to update
Only set networked vehicles as persistent and able to migrate
Return entityCoords from `ESX.Game.GetVehicleInDirection`
Only run `ServerSyncLoops` while ESX.PlayerLoaded is true
Create an imports file to set ESX object and EventHandler for `esx:setPlayerData`
2021-05-06 19:42:56 +10:00
MiddleSkillz 1662caa137 fix: Remove Redundant Function 2021-05-06 02:34:32 -06:00
MiddleSkillz c9aaab9a08 fix: force vector3 on Teleport function 2021-05-06 02:34:03 -06:00
MiddleSkillz 531c831e4c refactor: optimize ESX.TimeoutCallbacks 2021-05-06 02:24:02 -06:00
Mycroft c8c8ffeb4d add features 2021-05-03 22:37:02 +01:00
Mycroft bac6cbbb7e add commands 2021-04-26 19:05:58 +01:00
Satria Adhi a62890cc56 fix give_ammo, mistake from fixed #633 2020-05-16 19:43:30 +07:00
Jérémie N'gadi 947f2184ff Revert "pt-PT Translation pt.lua" 2020-05-15 18:21:28 +02:00
Jérémie N'gadi 5a21e759a9 Merge pull request #737 from ESX-Org/develop
pt-PT Translation pt.lua
2020-05-15 18:16:58 +02:00
heyheyitsmeman 30fc31bbb7 Update functions.lua 2020-05-15 13:36:45 +03:00
Biromain ed3ca145a2 Some utils function 2020-05-13 20:56:58 +02:00
Github d5cad4a911 Added progressbar 2020-05-13 15:44:38 +01:00
Jérémie N'gadi 960998037e optimizations + more modules 2020-05-11 19:23:02 +02:00
Jérémie N'gadi 390cce6195 single resource concept + first attempt to reorganize code 2020-05-11 04:21:10 +02:00
ElPumpo c8381b1b4e Removed ESX.Game.GetClosestPlayer() second argument "modelFilter" 2020-04-22 11:35:04 +02:00
AvarianKnight a9658e0eb8 add tank health 2020-04-21 13:42:07 -05:00
Lucas ab3cf826da Implemented ShowFloatingHelpNotification() (#662)
* Implement Floating Text

use `ESX.ShowFloatingHelpNotification("lol")` in a loop

* Removed beep and broken duration, fixed indent

Co-authored-by: Lucas <63737942+SSNIKRS@users.noreply.github.com>
Co-authored-by: ElPumpo <samo_kol@hotmail.com>
2020-04-15 20:44:36 +02:00
ElPumpo 17ac9d5846 Fixed mistakes with fuctions returning lists of players
Fixed some ESX functions that are used to get the closests, I forgot that the functions should've returned the player and not the entity handle :/

Also fixed the ESX.Game.GetClosestPed() function just returning your own ped.

Thanks @SSNRSS for helping me iron out the problems!

Co-Authored-By: Lucas. <ssnrss@users.noreply.github.com>
2020-04-15 20:08:00 +02:00
ElPumpo bd76482cae Minor adjustments, changed sql database name 2020-04-14 16:45:28 +02:00
ElPumpo 6a0f3ca452 Fixed untested new code :/ 2020-04-14 13:58:40 +02:00
ElPumpo cf7f6b14f4 Finished new code, closes #249
Co-Authored-By: Lén <corbeau.lenaic@gmail.com>
2020-04-14 13:25:45 +02:00
ElPumpo 5562712975 ⚠️⚠️BREAKING COMMIT⚠️⚠️: Merged dupe client functions code
This changes arguments on the following functions:
- ESX.Game.GetClosestObject()
- ESX.Game.GetPeds(), no more arg for ignoreList
- ESX.Game.GetClosestPed(), no longer a ignore list, instead a whitelist
2020-04-14 13:08:10 +02:00
ElPumpo e772031094 Fixed some cases of shadowing upvalue 2020-04-14 10:42:03 +02:00
ElPumpo 26ac44b35b Hopefully fixed #633 2020-04-14 10:29:30 +02:00
ElPumpo 779afff503 Fixed typos in locales, closes #658 2020-04-14 10:23:55 +02:00
ElPumpo d707b60493 Added timeout on HasCollisionLoadedAroundEntity() 2020-04-12 18:11:35 +02:00
ElPumpo 8de2e4311a Unload model where applicable 2020-04-11 11:53:50 +02:00
ElPumpo 492f41ca45 Don't spam request asset natives 2020-04-06 13:19:34 +02:00
ElPumpo 77e810ce95 Fixed setting vehicle pearlescent color
Co-Authored-By: Daniel Hawton <daniel@hawton.org>
Co-Authored-By: ChainTastic <chaintastic@users.noreply.github.com>
2020-03-26 12:10:45 +01:00
ElPumpo 79d53a5550 ESX.Game.GetPedMugshot() second argument transparent 2020-02-28 20:05:27 +01:00
Samuel e9ef6a2ab3 Merge pull request #499 from Deliux/Deliux-patch-1
Xenon Color addition
2020-02-18 00:41:27 +01:00
ElPumpo 35a726685e ⚠️⚠️BREAKING COMMIT⚠️⚠️: Complete ES ditch 2020-02-17 15:22:09 +01:00
Deliux e6c90ea30e Xenon Color addition
Could be used in esx_lscustoms, to change colors of xenons
2020-02-12 15:40:19 +02:00
ElPumpo f11e97e0a5 Improved ammo label handling, extended weapon configuration file with ammo hash and label 2020-02-11 11:50:59 +01:00
Samuel b011cd8fd5 Merge pull request #411 from lemonpea/master
Add function to replace all elements
2020-01-20 12:27:13 +01:00
ElPumpo 99c43b62c0 Fixed Teleport function with vector3 types 2020-01-16 12:26:31 +01:00
ElPumpo 06eb61fa2a Fixed random vehicle colors 2020-01-15 15:04:15 +01:00
ElPumpo 1e146c3211 Added entity check for GetVehicleProperties() 2020-01-15 14:13:15 +01:00
ElPumpo 0fbd5d03a2 Minor changes, fixed giving weapon? 2020-01-15 14:10:57 +01:00
ElPumpo 0d4377042d Update functions.lua 2020-01-15 12:33:55 +01:00
ElPumpo 60fd7e317b Added optional notification background color arugment
Co-Authored-By: WolfShy1 <wolfshy1@users.noreply.github.com>
2020-01-15 12:18:39 +01:00
ElPumpo c345d40374 Disable DisplayHelpTextThisFrame saveToBreif, fixed code 2020-01-15 12:11:37 +01:00
ElPumpo 1d83a1f2f4 Updated native names, added optional values (read desc)
Added flash and saveToBreif booleans to ESX.ShowNotification() and ESX.ShowHelpNotification()

Added two optional booleans thisFrame, beep to ShowHelpNotification() and last new optional argument duration
2020-01-15 11:54:19 +01:00
ElPumpo 9be103db31 ESX.Game.Teleport() support heading, minor cleanup 2020-01-12 21:04:04 +01:00
ElPumpo feaf842420 Show player name and not steam name, fixes #354 2020-01-05 15:49:00 +01:00
ElPumpo 2f75152457 Changed how pickups work, see desc. Fixed #338, fixed #420
- Pickups now require you to press E once nearby to pick up
- Fixed pickup objects sometimes not showing up #420
- Added animation to picking up and throwing items
- Added message when inventory cannot accept picking up item
2020-01-03 19:20:26 +01:00
lemonpea 0439cab26b Add function to replace all elements.
This would be nice to have, it would be easier to manage a menu if it's already opened. Here is an example where I would use it.

https://gyazo.com/a5b648502bc15c0c629ce3b86d1759cd
2019-12-23 17:03:28 +01:00
ElPumpo 145f8ebe75 Breaking changes: implemented global weight inventory system, read description before updating!
- Fixed #256
- Implements #173

__NO OFFICIAL ESX SCRIPT WILL WORK WITH THIS AT THE MOMENT__

This commit will break your entire ESX if you dont use the new SQL format, follow the new one if you want it all to work properly.

Scripts using `item.limit` will break too, instead use `xPlayer.canCarryItem(item, count)`
2019-10-13 20:56:09 +02:00