Commit Graph

143 Commits

Author SHA1 Message Date
ElPumpo 8a586e433c ⚠️⚠️BREAKING COMMIT⚠️⚠️: mapmanager & spawnmanager ditch
Make sure you remove or disable mapmanager and spawnmanager
2020-03-23 13:58:41 +01:00
ElPumpo 986cbfb32a Added missing trailing spaces 2020-03-22 09:47:04 +01:00
ElPumpo 9a1dfa42ca Sync consumed ammo with server properly
No more security issues here!
2020-03-22 09:43:43 +01:00
ElPumpo 79d53a5550 ESX.Game.GetPedMugshot() second argument transparent 2020-02-28 20:05:27 +01:00
ElPumpo 24a9defca4 Removed xPlayer.removeWeapon() second argument 2020-02-25 15:54:38 +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 8a832aee3b Implemented adding chat suggestions, closes #512 2020-02-17 23:07:18 +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 b2a46fdfb3 Reverted new RegisterKeyMapping() native usage for now, its broken :/ 2020-02-12 12:06:05 +01:00
ElPumpo 11a541b672 Fixed #496 2020-02-12 10:32:23 +01:00
ElPumpo baa9ca3afc Implemented weapon tint support (desc), closes #477
- Implemented two new xPlayer functions:
  - .getWeaponTint(weaponName)
  - .setWeaponTint(weaponName, weaponTintIndex)

Thanks to @profex1999 for co authoring this!

Co-Authored-By: Andrea Passarini <profex1999@users.noreply.github.com>
2020-02-11 21:11:54 +01:00
Jay 8e13cf6613 esx:spawnVehicle using Player Heading (#486)
* esx:spawnVehicle using Player Heading

Updated esx:spawnVehicle to use the players heading as opposed to the default 90.0 degree angle

* Update main.lua
2020-02-11 19:45:48 +01:00
ElPumpo f11e97e0a5 Improved ammo label handling, extended weapon configuration file with ammo hash and label 2020-02-11 11:50:59 +01:00
ElPumpo e25f5dee2e Temp code revert for loadout updating, fixes ammo sync 2020-02-11 11:37:47 +01:00
ElPumpo 6ed2e1c4e7 Minor changes 2020-02-01 13:02:23 +01:00
ElPumpo cd1ce6a849 Don't parse item object to client, added weapon component notifications (more see desc)
- Removed xPlayer .displayBank()
- Fixed issues with giving weapon using commands
- Modified ESX.UI.ShowInventoryItemNotification() to take string instead of table
- Minor adjustments and variable renames
- Fixed lower case weapons not droppable
- Removed /disconnect command becasue fivem implemented their own
2020-01-20 14:33:24 +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 133825dbea Use new key register 2020-01-19 17:57:28 +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 f89e051756 BREAKING COMMIT - Player loading improvements (read description!)
This commit implements a new way of saving and getting player coords.

Player coords are synced with its assigned xPlayer, the syncing interval is defined in the configuration file.
Also coords wont sync if the player is too close to their previous location.

Existing servers must change their database to account for the new length of the position varchar, at 53 chars max. There's also a column default value specified in the sql file.

New xPlayer functions:
- .getCoords()
- .setCoords() (x,y,z,heading (optional) table
- .updateCoords()

The last one is used for syncing coords from client (interval). The second one will teleport the player. First one is a renamed .getLastPosition()
2020-01-12 22:13:30 +01:00
ElPumpo 5566abca4f Removed updating loadout from client - usally spawned weapons 2020-01-12 22:04:59 +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 e83801cf42 Death module: fixed killer sometimes not getting found, changed native. Fixes #417 2020-01-04 23:54:39 +01:00
ElPumpo fdabf80657 Implemented ESX weapon drops with components support, closes #421 2020-01-04 01:33:12 +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
ElPumpo 4187675148 /dv command changes (see desc)
- Added optional /dv argument for deleting vehicles in proximity
- Use RequestControlOfEntity native to properly delete entities
2019-12-27 14:49:29 +01:00
ElPumpo 756a13f3bb Add vehicle test for /car command, and use IsModelInCdimage() native 2019-12-27 14:09:07 +01:00
ElPumpo 28bcb5ca71 Removed commands: /loadipl /unloadipl /playanim /playemote /spawnped /spawnobject 2019-12-27 13:00:54 +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 0e5dda5779 Added pvp to esx, fixes #302 2019-10-13 19:18:22 +02:00
ElPumpo 322fb19034 Fixed #350 2019-10-09 21:55:44 +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
Samuel 986e12ad38 Merge pull request #322 from LifeGoal/master
Loadout & confiscating fix (read desc)
2019-09-29 09:12:04 +02:00
ElPumpo 8586fdcce2 Fix thrown items not synced with mid-joined players 2019-09-18 13:47:41 +02:00
Viktor 2e39e3d01a Fixed loadout flaw when confiscated while dead 2019-08-04 16:47:33 +02:00
ElPumpo 06d3ee286f Replaced for i= loops with ipairs 2019-08-04 14:55:04 +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