Commit Graph

36 Commits

Author SHA1 Message Date
Linden
fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Jag
648a13f749 fix(client/vehicleproperties): reset colors when changing painttype (#692) 2025-01-29 18:17:11 +11:00
Scully
d56c785a37 fix(vehicleProps): split modLivery from livery (#699) 2025-01-29 07:00:58 +11:00
Linden
e0f6f47cc7 refactor(client/vehicleProperties): check for tutorial session 2024-07-14 16:35:27 +10:00
Linden
c45aa0d893 feat(vehicleProperties): add statebag handler and server setter 2024-07-13 00:25:30 +10:00
Linden
b9452f9248 refactor(client/vehicleProperties): return true if client owns entity
Technically closer to the previous behaviour.
2024-04-20 10:28:21 +10:00
Linden
58021e70fd refactor(client/vehicleProperties): remove entity owner check
May revert - let's see what happens.
2024-04-20 05:58:32 +10:00
Lunar-Scripts
fe94c5be7a fix(client/vehicleProperties): Fix error on gameBuilds below 2372 (#417) 2023-09-19 19:59:59 +10:00
Linden
abfacee33c refactor(client/vehicleProperties): disable SetVehicleAutoRepairDisabled
People can just call this themselves.
Sick of complaints about extras.
2023-09-13 00:13:05 +10:00
Jellyton
0c072ef4f7 feat(client/vehicleproperties): add fixVehicle parameter (#392) 2023-08-15 10:40:35 +10:00
Luxu
a97b9ba054 fix(client/vehicleProperties): missing props and paint fixes (#396) 2023-08-15 10:37:27 +10:00
Linden
c6742eeae9 refactor(client/vehicleProperties): driftTyres and window tweaks
+ some notes about setting props from server.
2023-07-31 16:17:50 +10:00
Lukas Brūzga
f641881243 fix(client/setVehicleProperties): force clear custom colours (#375) 2023-07-23 13:14:44 +10:00
Jerry
588d26c421 fix(client/vehicleProperties): don't set modLivery if no livery exists (#374) 2023-07-23 13:14:03 +10:00
Jag
65a799071a chore: various fix-ups from docs clean-up (#363)
- Add in missing js functions
  - getCurrentRadialId
  - requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-07-21 13:54:29 +02:00
Linden
6cf53ddd68 fix(client/vehicleProperties): mods not applying 2023-05-28 15:02:54 +10:00
Linden
4e4b5bd570 fix(client/vehicleProperties): tonumber for extras and tyres
Sparse arrays sometimes json.decode with string keys, i.e.
`{[5] = 1, [10] = 1}` becomes `[null,null,null,null,1,null,null,null,null,1]`
`{[10] = 1, [11] = 1}` becomes `{"10":1,"11":1}`
2023-05-22 05:08:31 +10:00
Linden
b4edc5bac6 feat(client/vehicleProperties): support extra props
Add modKit and bulletProofTyres.
2023-05-22 03:38:36 +10:00
Linden
3bc9c3206d fix(client/vehicleProperties): missing tyres 2023-05-22 03:34:21 +10:00
Linden
c0ee1ae2f8 fix(client/vehicleProperties): SetVehicleExtra takes bool 2023-05-22 03:27:47 +10:00
Linden
b3b49b1cbd fix: missing and invalid types and parameters 2023-02-25 18:20:14 +11:00
Scully
231d1c3c77 feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
2022-11-26 13:05:55 +11:00
Linden
5c028759f3 fix(client/vehicleProperties): livery getter 2022-09-22 15:05:23 +10:00
Linden
0e1dfc78ba refactor(resource/vehicleProperties): type fixes 2022-09-18 11:33:17 +10:00
Linden
d08101c545 refactor(resource/vehicleProperties): typings and formatting 2022-09-18 11:25:07 +10:00
Linden
a0bea87dfa fix(client/vehicleProperties): store neons as an array
People normally complain about the most nonsensical non-issues; yet
this one was completely left alone; or more specifically, one person
attributed the issue to ox_lib but didn't bother to report the issue or
provide a fix, instead just
complaining that "ox_lib is constantly updating".
2022-08-20 12:55:07 +10:00
Linden
9bc37b461d tweak(vehicleProperties): allow local entities
Local entities (not networked) would fail the check for NetworkGetEntityOwner.
Also fix the error messages, which referenced the wrong variable.
2022-07-09 03:41:25 +10:00
Linden
893ec8bb00 feat(vehicleProperties): extra settings
Includes some minor fixes.
2022-06-30 07:44:51 +10:00
Linden
b1056c1246 tweak(vehicleProperties): return true on success 2022-06-19 14:06:59 +10:00
DokaDoka
9a019d61ed tweak(vehicleProperties): increase timeout when setting properties 2022-06-01 15:09:49 +10:00
Linden
6fb57eff49 fix(vehicleProperties): store correct extra values 2022-05-14 17:14:49 +10:00
DokaDoka
1080efb0cf fix(vehicleProperties): wait until entity exists before setting vehicle properties 2022-05-08 17:36:17 +10:00
xrtw
37448b354e GetVehicleXenonLightsColour -> GetVehicleXenonLightsColor
https://docs.fivem.net/natives/?_0x3DFF319A831E0CDB
2022-03-25 13:42:53 +02:00
Linden
e971778b29 refactor(vehicleproperties): throw error for invalid or unowned entity 2022-03-15 06:52:40 +00:00
Linden
13c8c29811 refactor: change event names from lualib to ox_lib 2022-03-13 03:21:01 +00:00
Linden
adf08e44b8 chore: move files, add docs link 2022-03-01 10:55:46 +00:00