- new built-in functions
addEventListener
anddispatchEvent
. See https://re.cleo.li/docs/en/events.html - add
setTimeout
,setInterval
,clearTimeout
,clearInterval
. See https://re.cleo.li/docs/en/api.html - add
.cs
,.js
,.ts
to the list of allowed file extensions for CLEO.runScript - fix a rare deadlock causing scripts to stop on timeout
- fix an issue causing script failures after hot reload
- fix an issue when Bully commands returned incorrect values
SDK AND PLUGINS
- new SDK method
TriggerEvent
to trigger custom events with some payload. SDK version is now 7. - new Events plugin that brings in a few events to react on in JS/TS code:
OnVehicleCreate
,OnPedCreate
,OnObjectCreate
,OnVehicleDelete
,OnPedDelete
,OnObjectDelete
- IdeLoader 1.3: generate
ide_loader.d.ts
for better intellisense in TS scripts - TxtLoader 1.1: generate
txt_loader.d.ts
for better intellisense in TS scripts
BREAKING CHANGES
- bumped minimum required versions of command definitions
Thanks to @VitalRus95 for the help with testing.