SALESup to -59%Sales are live in the shop: see the deals
← All scripts

NC Wings — Configuration guide

Every option of config.lua. After a change, restart the resource (ensure nc_wingstails) or the server.

Back to the guide: README.md.

1. Framework

OptionWhat it doesDefault
Config.Framework'auto' = the first started of qbx_core, qb-core, es_extended, otherwise standalone. Force it with 'qbx', 'qb', 'esx', 'standalone'. Start nc_wingstails after the framework. The framework files are in bridge/framework/ and you can edit them.'auto'

2. General

OptionWhat it doesDefault
Config.CommandAdmin command that opens the panel (assign / revoke).'wingstails'
Config.ToggleCommandPlayer command: without argument puts the wings on / off; with an animation id switches the animation (/wings fly).'wings'
Config.ToggleKeyFixed key for the toggle, for example 'F9'. '' = no key: every player binds it in FiveM Settings > Key Bindings.''
Config.StreamDistanceMetres within which the wings of other players are shown; farther away they are removed.60.0
Config.DebugMessages in the F8 and server consoles and the /wingspos command. Leave false on a live server.false
Config.RateLimitAnti-spam: at most maxRequests actions every windowMs milliseconds per player (toggle, animation, assign, revoke).{ maxRequests = 5, windowMs = 2000 }

3. Permissions — Config.Permission

Who can open the admin panel and assign / revoke. Checked on the server only. A player is allowed when at least one rule matches. /wings is not affected: every player can wear the wings assigned to them.

OptionWhat it doesDefault
everyonetrue = every player (the other rules are ignored).false
aceACE permission, for example add_ace group.admin nc_wingstails.use allow in server.cfg. '' = rule off.'nc_wingstails.use'
groupsFramework groups (Qbox / QBCore: admin, god...; ESX: admin, superadmin...).{ 'admin' }
jobsAllowed jobs, for example { 'police' }.{ }
identifiersAllowed identifiers, for example { 'license:...', 'discord:...' }.{ }

4. Wings — Config.Props

One entry = one wings and tail prop. The resource ships one prop (nc_wingstails_d) with 5 colours and 4 animations. A player has one pair at a time: a new assignment replaces the old one.

FieldWhat it does
idId saved in the database and used by the panel.
labelName shown in the panel, one text per language: { it = '...', en = '...', ... }.
slot'back': worn on the back.
modelBase model, used when a colour has no model of its own.
bonePed bone the wings are attached to (24816 = upper spine).
pos / rotOffset in metres and rotation in degrees from the bone. The shipped values are tested in game: vector3(-0.1, 0.0, 0.0) and vector3(0.0, -90.0, 180.0).
dictAnimation file name without extension (stream/anim@nc_wingtails_d.ycd).
animsAnimations: id (used by /wings <id>), label, clip (name inside the file).
defaultAnimAnimation used when the wings are put on.
colorsColours: id, label, model (the .ydr of that colour), swatch (two colours shown in the panel).
effectParticle effect, optional: a prop without this field has no effect.

Animations

idClip
idleidle_clip
flyfly_clip
hungryhungry_clip
listenlisten_idle_clip

Colours

idModel in stream/
originalenc_wingstails_d
doratonc_wingstails_dorato
rosso_sanguenc_wingstails_rosso_sangue
blu_nottenc_wingstails_blu_notte
verde_smeraldonc_wingstails_verde_smeraldo

The texture file nc_wingstails_d_tex.ytd and the model definitions nc_wingstails_d_ytyp.ytyp are shared by all 5 colours. To hide a colour from the panel, remove its row from colors.

Effect — effect

FieldWhat it doesDefault
enabledfalse = no fire.true
dictEffect file without extension (stream/red_effect.ypt).'red_effect'
nameEffect name inside the file.'red_fire'
bonesBones of the prop the fire starts on.{ 'nc_wingstails_tail_28' }
offset / rotOffset and rotation from the bone.vector3(0.0, 0.0, 0.0)
scaleSize of the fire.0.05

Moving the wings

If you use a ped where the wings sit wrong: set Config.Debug = true, restart the resource, put the wings on with /wings, then try values with /wingspos x y z rx ry rz [bone]. The F8 console prints the line to paste in pos / rot / bone. Put Config.Debug = false back when you are done.

5. Language

OptionWhat it doesDefault
Config.Locale'it', 'en', 'de', 'fr', 'es', 'pt', 'zh', 'ja', 'ko'. Texts are in locales/<language>.lua; an unknown language uses English. With 'zh', 'ja', 'ko' the key name in the FiveM settings stays in English.'en'

6. Database

Table nc_wingstails_assigned, created by itself at start (same text as sql/install.sql). One row per character:

ColumnContent
ownerCharacter id (primary key).
prop_idAssigned wings.
color_idAssigned colour.
anim_idSaved animation.
worn1 = worn, put back on at character load.
assigned_byAdmin who assigned them.
assigned_atDate of the assignment.

The full guide in 9 languages is also in the resource's docs/ folder.