You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-11Lines changed: 51 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,9 +171,9 @@ This is current as of 2024-08-06. Some options might be different in future vers
171
171
172
172
#### `metadata.config_version_wildcard`
173
173
174
-
Resolves to a wildcard.
174
+
Resolves to a wildcard; defaults to `"*"`.
175
175
176
-
_Wildcard_ which matches against the `GIT_RELEASE_VERSION` internal constant. Useful for protecting changes in config structure between RFD versions. If not included, the value is "\*".
176
+
Matches against the `GIT_RELEASE_VERSION` internal constant. Useful for protecting changes in config structure between RFD versions.
When game:SavePlace() is called, overwrites the place at `rbxl_uri`. Doesn't work if `rbxl_uri` points to an online resource.
247
247
248
248
#### `game_setup.asset_cache.dir_path`
249
249
250
250
Resolves to type `path_str`. Relative paths are traced from the directory where the config file is placed.
251
251
252
+
#### `game_setup.asset_cache.clear_on_start`
253
+
254
+
Resolves to type `bool`; defaults to false.
255
+
256
+
If true, deletes cache from assets which should redirect so that the config file remains correct.
257
+
252
258
#### `game_setup.persistence.clear_on_start`
253
259
254
-
Resolves to type `bool`.
260
+
Resolves to type `bool`; defaults to false.
261
+
262
+
If true, clears all persistent data before starting a new server.
255
263
256
264
#### `game_setup.persistence.sqlite_path`
257
265
@@ -278,18 +286,42 @@ end
278
286
279
287
Resolves to type `(str) -> bool`.
280
288
289
+
```
290
+
check_user_allowed = '''
291
+
function(user_code) -- string -> bool
292
+
return true
293
+
end
294
+
'''
295
+
```
296
+
281
297
#### `server_core.retrieve_username`
282
298
283
299
Resolves to type `(str) -> str`.
284
300
285
301
Only gets called the first time a new user joins. Otherwise, RFD checks for a cached value in [the `sqlite` database](#game_setuppersistencesqlite_path).
286
302
303
+
```
304
+
retrieve_username = '''
305
+
function(user_code)
306
+
return user_code
307
+
end
308
+
'''
309
+
```
310
+
287
311
#### `server_core.retrieve_user_id`
288
312
289
313
Resolves to type `(str) -> int`.
290
314
291
315
Only gets called the first time a new user joins. Otherwise, RFD checks for a cached value in [the `sqlite` database](#game_setuppersistencesqlite_path).
292
316
317
+
```
318
+
retrieve_user_id = '''
319
+
function(user_code)
320
+
return math.random(1, 16777216)
321
+
end
322
+
'''
323
+
```
324
+
293
325
#### `server_core.retrieve_avatar_type`
294
326
295
327
Resolves to type `(str) -> Enum.HumanoidRigType`.
@@ -298,19 +330,19 @@ Where Rōblox [`Enum.HumanoidRigType`](https://create.roblox.com/docs/reference/
298
330
299
331
```
300
332
retrieve_avatar_type = '''
301
-
function(user_code) -- str -> str
333
+
function(user_code)
302
334
return 'R15'
303
335
end
304
336
'''
305
337
```
306
338
307
339
#### `server_core.retrieve_avatar_items`
308
340
309
-
Resolves to type `(str) -> list[int]`.
341
+
Resolves to type `(str) -> [int]`.
310
342
311
343
```
312
344
retrieve_avatar_items = '''
313
-
function(user_code) -- str -> [str]
345
+
function(user_code)
314
346
return {
315
347
10726856854,
316
348
9482991343,
@@ -341,7 +373,7 @@ Resolves to type `(str) -> util.types.structs.avatar_scales`.
341
373
342
374
```
343
375
retrieve_avatar_scales = '''
344
-
function(user_code) -- str -> {[str]: number}
376
+
function(user_code)
345
377
return {
346
378
height = 1,
347
379
width = 0.8,
@@ -360,7 +392,7 @@ Resolves to type `(str) -> util.types.structs.avatar_colors`.
360
392
361
393
```
362
394
retrieve_avatar_colors = '''
363
-
function(user_code) -- str -> {[str]: number}
395
+
function(user_code)
364
396
return {
365
397
head = 315,
366
398
left_arm = 315,
@@ -381,7 +413,7 @@ Key is the group id. Value is the rank.
381
413
382
414
```
383
415
retrieve_groups = '''
384
-
function(user_code) -- str -> str
416
+
function(user_code)
385
417
return {
386
418
['1200769'] = 255;
387
419
['2868472'] = 255;
@@ -399,6 +431,14 @@ end
399
431
400
432
Resolves to type `(str) -> int`.
401
433
434
+
```
435
+
retrieve_account_age = '''
436
+
function(user_code) -- str -> int
437
+
return 6969
438
+
end
439
+
'''
440
+
```
441
+
402
442
#### `server_core.retrieve_default_funds`
403
443
404
444
Resolves to type `(str) -> int`.
@@ -407,7 +447,7 @@ Established the amount of funds that a player receives when they join a server f
0 commit comments