mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2026-11-10 13:57:18 +01:00
Misc fixes (#233)
* fix(spawnmanager): correct native arguments and enable ped model check Signed-off-by: Mathu-lmn <[email protected]> * fix(mapmanager): restrict the gametype command Signed-off-by: Mathu-lmn <[email protected]> * fix(example-loadscreen): handle unknown init types such as INIT_CORE Signed-off-by: Mathu-lmn <[email protected]> --------- Signed-off-by: Mathu-lmn <[email protected]>
This commit is contained in:
@@ -28,6 +28,7 @@ var count = 0;
|
||||
var thisCount = 0;
|
||||
|
||||
const emoji = {
|
||||
INIT_CORE: [ '🍇' ],
|
||||
INIT_BEFORE_MAP_LOADED: [ '🍉' ],
|
||||
INIT_AFTER_MAP_LOADED: [ '🍋', '🍊' ],
|
||||
INIT_SESSION: [ '🍐', '🍅', '🍆' ],
|
||||
@@ -38,7 +39,7 @@ const handlers = {
|
||||
{
|
||||
count = data.count;
|
||||
|
||||
document.querySelector('.letni h3').innerHTML += emoji[data.type][data.order - 1] || '';
|
||||
document.querySelector('.letni h3').innerHTML += (emoji[data.type] || [])[data.order - 1] || '';
|
||||
},
|
||||
|
||||
initFunctionInvoking(data)
|
||||
|
||||
Reference in New Issue
Block a user