Commit Graph

441 Commits

Author SHA1 Message Date
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 b3a36747a3 Removed saving Steam name in database, closes #246 2020-01-15 10:27:07 +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 ccdd4494c5 Reset color after client print, use async callback for retrieving jobs 2020-01-12 21:55:18 +01:00
ElPumpo 9be103db31 ESX.Game.Teleport() support heading, minor cleanup 2020-01-12 21:04:04 +01:00
ElPumpo 91eb2f8505 Removed jobmaster group 2020-01-12 19:18:41 +01:00
ElPumpo aa9ffd3866 Replace __resource.lua with fxmanifest.lua 2020-01-12 19:17:05 +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 b30e72bdcc Fixed /givecommandcomponent command, closes #422 2020-01-04 10:55:10 +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 9b33a3e6ca Fix math round function again
Co-Authored-By: hugocabral <hugocabral@users.noreply.github.com>
2020-01-03 19:10:25 +01:00
ElPumpo bf9c14ed57 Added /giveweaponcomponent command, easier to understand parms table 2020-01-03 17:56:44 +01:00
ElPumpo 2140f8628c Added log level to print uses, and change formatting 2020-01-03 13:55:23 +01:00
ElPumpo ffa05600a4 Updated readme 2020-01-03 13:05:16 +01:00
ElPumpo 2539e6fa9d Added missing exception handlers to commands, removed /setmoney command closes #206 2020-01-03 12:49:07 +01:00
ElPumpo 8eb1acd082 Fixed round function not properly working in some locales, closes #258 2020-01-02 14:31:46 +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 2d80e55631 rename _source variable to playerId 2019-12-27 13:49:40 +01:00
ElPumpo aad435842b Update player.lua 2019-12-27 13:47:18 +01:00
ElPumpo f9afa6f017 player.lua: implement canSwapItem() and triggerEvent() 2019-12-27 13:45:53 +01:00
ElPumpo f0130e8f38 player.lua: test nil values 2019-12-27 13:39:31 +01:00
ElPumpo 28bcb5ca71 Removed commands: /loadipl /unloadipl /playanim /playemote /spawnped /spawnobject 2019-12-27 13:00:54 +01:00
ElPumpo 3aa7ada482 Follow markdown standard 2019-11-16 18:26:36 +01:00
ElPumpo c7a30efdd1 Added ESX.Table.Set() function and fixed accounts not loading
http://www.lua.org/pil/11.5.html
2019-11-16 17:41:41 +01:00
ElPumpo aa1ad0a1e8 Minor code improvements 2019-11-14 22:26:13 +01:00
ElPumpo f32f44f502 Fixed trailing spaces, and commands.lua use apostrof 2019-11-14 21:25:16 +01:00
Samuel 09fbb60e8a Merge pull request #377 from Trsak/master
Fix pickups not syncing server sided
2019-10-27 09:30:06 +01:00
Petr Sopf 40f9d2aa1f Fix pickups not syncing server sided 2019-10-23 21:47:35 +02:00
ElPumpo 87fb7b6571 Removed old locales, updated Swedish locale 2019-10-19 19:48:34 +02:00
ElPumpo f33c317d6f Fixed sql file inproper weight type 2019-10-19 19:38:54 +02:00
Samuel b2c5044fc9 Merge pull request #364 from BenjiM/master
Update fr.lua
2019-10-15 20:55:37 +02:00
Samuel da6ad23afe Merge pull request #366 from userMacieG/patch-3
Update pl.lua
2019-10-15 20:54:59 +02:00
userMacieG 9ac7d39884 Update pl.lua 2019-10-14 14:07:27 +02:00
BenjiM d9a545727f Update fr.lua 2019-10-14 01:34:47 +02: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
Samuel 663dce307f Merge pull request #357 from userMacieG/patch-2
Update pl.lua
2019-10-13 17:31:25 +02:00
ElPumpo 32e6c7edc2 Added optional xPlayer.getCoords() argument to return vector3 type 2019-10-13 16:39:29 +02:00
ElPumpo 61fe6e7323 Removed ES links, see #356 2019-10-13 16:38:56 +02:00
userMacieG f438ea21db Update pl.lua 2019-10-11 14:35:49 +02:00
ElPumpo 322fb19034 Fixed #350 2019-10-09 21:55:44 +02:00
ElPumpo 546ac33b1a Added xPlayer .showNotification() and .showHelpNotification() 2019-10-06 20:29:56 +02:00
ElPumpo 4000e1eb34 Added DrawText3D() optional font argument 2019-10-06 20:29:21 +02:00
ElPumpo 8a7cf56497 xPlayer.getCoords() round to one decimal from ES 2019-09-29 11:30:42 +02:00
ElPumpo 06952418bf DrawText3D: use SetDrawOrigin() instead of World3dToScreen2d() that was one frame behind 2019-09-29 11:30:21 +02:00