Commit Graph

92 Commits

Author SHA1 Message Date
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
ElPumpo 130df3f18f Fixed notification 99 char limit by using TextEntry, fixes #286
You can also split up strings each 99 chars and still use AddTextComponentSubstringPlayerName
2019-10-13 20:20:12 +02:00
ElPumpo 4000e1eb34 Added DrawText3D() optional font argument 2019-10-06 20:29:21 +02:00
ElPumpo 06952418bf DrawText3D: use SetDrawOrigin() instead of World3dToScreen2d() that was one frame behind 2019-09-29 11:30:21 +02:00
ElPumpo 44c05b8fae Added fuel to veh properties and ensure decimal value 2019-08-02 11:33:10 +02:00
ElPumpo e850da085e See description for changes
Fixed the "health" problems on vehicles. It seems like you shouldn't use the `GetEntityHealth()` on vehicles at all since it is linked to the `GetVehicleBodyHealth()` native.
But if you use the `SetEntityHealth()` native on an vehicle it breaks the link. Instead there's both body health and engine health that ESX has missed out on.
Since the new used `GetVehicle***` natives return decimal values we round them to 1 decmial.
Also dirt levels are now rounded to one decimal since they make 0 visable difference.
2019-07-30 20:40:39 +02:00
ElPumpo 9fa0c12e02 Replaced MaxPlayers with GetActivePlayers for all babies 👶 2019-07-20 13:09:42 +02:00
ElPumpo 954572c934 Minor changes, removed keys table 2019-06-08 22:24:20 +02:00
ElPumpo 15489ec3c7 Proper hud natives 2019-05-20 23:05:38 +02:00
ElPumpo 3d27e2b0a6 Indent cleanup 2019-04-17 11:38:12 +02:00
ElPumpo 51b2df94af Fixed IsVehicleEmpty() again 2019-03-30 08:49:03 +01:00
ElPumpo 28ce131fb7 Implemented vehicle extras property support, closes #186 2019-03-09 18:37:01 +01:00
ElPumpo 611bf76aaa Fixed IsVehicleEmpty() 2019-02-27 09:24:37 +01:00
ElPumpo 799a35fdf4 Implemented ESX.Game.IsVehicleEmpty() 2019-02-24 19:28:47 +01:00
ElPumpo 7e66edc351 Use correct text component 2019-01-15 23:35:51 +01:00
ElPumpo 63c8191be3 Proper default config 2019-01-13 22:45:03 +01:00
ElPumpo fb816bb9b7 Implemented menu.setTitle() 2019-01-13 00:33:00 +01:00
ElPumpo dade4f70ab Fixed removing elements 2019-01-12 19:50:18 +01:00
ElPumpo 9382128f2e Proper RequestCollisionAtCoord arguments 2019-01-08 13:51:00 +01:00
ElPumpo 2ac03e534e Implemented menu.removeElement(query) 2019-01-06 18:47:49 +01:00
ElPumpo 5e35663c95 Fixed mod liveries, thanks to Chubbs 2019-01-01 18:34:13 +01:00
ElPumpo 6c32c9ede0 Fixed bank money being droppable 2018-12-29 14:47:29 +01:00