Changelog
0.35.3 (2025-05-09)
HOTFIX: Fix wrong usage of native
PerformHttpRequestadded with version 0.35.2.Validate timestamp format for
NssLibsDiscordEmbed:setTimestampto ensure newer FiveM versions are supported.
What must be considered during update?
Nothing.
0.35.2 (2025-04-24)
Add more error information to
NssLibsDiscord:sendfor better debugging.
What must be considered during update?
Nothing.
0.35.1 (2024-11-20)
Add
cleanUpItemFromCraftedItemsTableto inventory api (needed for nss_quests 1.6.4).
What must be considered during update?
Nothing.
0.35.0 (2024-08-04)
Update README to make it clearer that only developers need the
config.demo.luaand config files in the modules.When a resource is stopped, the
AttachPropApionly outputs a message that props are being removed if the stopped resource had previously been created these props withnss_libs.Add
onBankInventoryOpen(),onMoveToCustomInventory(),onMoveToBankInventory(),onTakeFromCustomInventory()andonTakeFromBankInventory()toNssLibsInventoryApi.Add
addSourceToCallback(),doNotAddSourceToCallback(),getResourceName(),setCustomData()andgetCustomData()toNssLibsSharedHelperEventHandlerApi.Add
createCallbackApi(callback, resource_name)toNssLibsHelper(client and server side) which returns an api to handle the callback e.g. viaapi:disable()orapi:call('hello world').Add
getNearestPlayersInRadius()toNssLibsClientHelper.Add
priorityto notification methods inNssLibsNotifyApi.
What must be considered during update?
Nothing.
0.34.0 (2024-05-22)
NssLibsInventoryApi.registerUsableItemcallback now returns item id, crafted id and item label of used item.NssLibsInventoryApi.subItemnow optionally considers the metadata.Add
setItemMetadataandsubItemByCraftedIdtoNssLibsInventoryApi.
What must be considered during update?
Nothing.
0.33.0 (2024-04-15)
Fix "404 not found" in
NssClientmodule.Add method
isTableEqualtoNssLibsSharedHelper.Add methods
onGroupChange,onJobChange,onJobGradeChange,getSourceOfCharandgetSteamIdOfChartoNssLibsCharacterapi.NssLibsCharacterApinow uses the VORP cache instead of database for job and group information. VORP does not save changes of jobs and groups directly to the database. So we have to use the VORP cache.All instances of
char_dataformNssLibsCharacterApiare now singletons. If a group, job or job grade changes, then the singletons will be updated with the new data.
What must be considered during update?
Nothing.
0.32.0 (2024-03-30)
Add
playAnimation()andrequestAnimDict()toNssLibsClientHelper.Fix thread id check
NssLibsSharedHelper:createThreadSafeMonitor. Monitor now stops if:stop()is called.
What must be considered during update?
Nothing.
0.31.0 (2024-03-26)
Add
appendTo()toNssButtonsui component.Fix
getClientCharacterApiso it now returns the requested character api.Fix
NssLibsSharedHelper:createThreadSafeMonitornow uses the correctgetUniqueIdmethod considering client and server.Update arguments for
vorp_inventory:useItemto new version3.5ofvorp_inventory(use nowdataobject withidanditeminstead of argumentsitemIdanditemName).
What must be considered during update?
Update
vorp_inventoryto version3.5.0or higher.Note: If you can not update
vorp_inventoryto version3.5.0or higher, then do not updatenss_libsto version0.31.0or higher.
0.30.0 (2024-03-02)
Add
setMovementDetectionSensitivity()toNssLibsPromptsGroupApi.Add
hideOnMovement(),showOnMovement()andisHideOnMovement()toNssLibsPromptsPromptApi.Fix issues with prompts on movement detection.
Add special notes to
NssLibsPromptsPromptApigroup restriction documentation.
What must be considered during update?
Nothing.
0.29.0 (2024-02-23)
Add
getEntitiesNearby()toNssLibsEntityInRangeApi.Add
createResourceEventName(),padWithZeros(),dateToUnixTimestamp()andunixTimestampToDate()toNssLibsSharedHelper.Add
getCurrentServerTimestamp()andgetCurrentMsTimestamp()toNssLibsClientHelper.Change
getCurrentTimestamp()to a local way in the client.Add property
required_messagetoNssLibsConfigValidatorRule.Extend the logic for
serverIsReady()andonServerReady(). Now ships info about timeout and can ship additional data.Make
serverIsReady()andonServerReady()silent in server console.Add
getHandle()toNssLibsParticleFxPlayerApi.Add
closeInventory()toNssLibsInventoryApi.Add
NssLibsClientCharacterApifor the client and prepare a demo bridge to VORP for it.Rename
allowDuringDuringHogtied,forbidDuringDuringHogtied,allowDuringDuringMovementandforbidDuringDuringMovementtoallowDuringHogtied,forbidDuringHogtied,allowDuringMovementandforbidDuringMovementinNssLibsPromptsPromptApi(remove doubleduringin name).NssLibsServerHelper:addEventHandler()now returns an api to handle the event handler e.g. viaapi:destroy().NssLibsClientHelper:addEventHandler()now returns an api to handle the event handler e.g. viaapi:destroy().Extend the documentation of the
NssLibsHelpermodule.Extend the documentation of the
NssLibsCharactermodule.Add more details to error messages in
NssLibsPromptsmodule if the given key for a prompt is not valid.Add
higher_or_equal_as_number_properties,pre_check_ruleanddoes_not_existsrules toNssLibsConfigValidator.Add
hasOneOfTheJobs(),hasJob(),hasJobGrade()andisEmployed()toNssLibsCharacterItem.Fix
_isEntityValid()ofNssLibsSharedHelpernow recognizes custom filter function correctly.Fix
createThreadSafeMonitor()ofNssLibsSharedHelpernow returns a monitor object.Fix missing array of strings in
containsrule self test ofNssLibsConfigValidator.
What must be considered during update?
Ensure that
allowDuringHogtied,forbidDuringHogtied,allowDuringMovementandforbidDuringMovementofNssLibsPromptsPromptApiis used correctly in your own developed resources.
0.28.1 (2023-12-12)
Add rules
max,higher_as_number_propertiesandlinked_with_propertiesto rule set ofNssLibsConfigValidator.
0.28.0 (2023-12-11)
Add
addGold,hasGoldandsubGoldtoNssLibsCharactermodule.Add
getGoldImage,getWeaponImage,getWeaponImages,canCarryWeaponandcreateWeapontoNssLibsInventorymodule.Add type
weapontoConfigValidatormodule.Ensure prints containing only strings to prevent
SCRIPT ERROR: error object is not a string.
0.27.1 (2023-11-24)
Fix endless while loop in
InventoryClient:getUsedFramework(), thx to @Valko.Add
createThreadSafeMonitor()toNssLibsSharedHelpermodule.Make file name more detailed in
NssLibsServerHelper:requireFiles()error message (white spaces are now visible).Fix and remove some print outputs.
0.27.0 (2023-10-09)
Add
NssLibsAttachPropmodule.NssLibsSharedHelper:hasTableEntries()initially checks fornilbefore checking for entries.Add
fireToAll(event_name, ...)toClientEventApimodule.Add
getPlayersInRadius(),getPlayerClientIdsInRadius()andgetPlayerServerIdsInRadius()toNssLibsClientHelpermodule.Add named keys to
NssLibsPromptsApiso you can give "E" instead of hash as key value.
0.26.0 (2023-08-03)
Add
NssLibsNotifymodule/api.Add
NssLibsConfigValidatormodule/api.Add
waitUntilLoadingsScreenEnds()toNssLibsClientHelpermodule.Add
isFloat(),isFunction(),isTableArray()andisTable()toNssLibsSharedHelpermodule.Add
setRadius()andcreateRadiusAtCoords()toNssLibsBlipmodule.Add
getCharacterByCharId()toNssLibsCharacterApimodule.Add
serverIsReady()toNssLibsServerListenerApimodule.Add
onServerReady()toNssLibsServerEventApimodule.Add
getRandomArrayElement()toNssHelperui module.Title of blips are now shown.
0.25.3 (2023-07-13)
Add
requireFiles()toNssLibsServerHelpermodule.Add
existsItemInDb()andrequireItemsInDb()toNssLibsInventoryApimodule.Add
onConnected()andisStarted()toNssLibsDatabasemodule.
0.25.2 (2023-06-30)
Fix null pointer exception in
NssTipui module.Add more meaningful error messages for database errors in
NssLibsDatabasemodule.Add more meaningful documentation for
NssLibsDatabasemodule.
0.25.1 (2023-06-29)
config.demo.luais not encrypted anymore. README.md is updated.
0.25.0 (2023-06-28)
getFirstFoundWrapperofNssLibsServerHelpernow returns additionally the resource name.Extend
Inventorymodule by client side, e.g. to use items and weapons.Add
debouncetoNssHelperui module.Add
hidetoNssTipui module.Add
debouncedtoNssLibsSharedHelpermodule.Inventory change listener is now debounced to prevent multiple calls of same cause/reason.
ClientEventmodule now checks correctly if no callbacks are available.listenInventoryChangeofNssLibsInventoryApilisten now to more Vorp Inventory events.If multiple sounds are start playing at same time the master volume is now used correctly in
NssAudioui module.NssHelper.debounceandNsshelper.debounceClocknow considering arguments for debounced function.
0.24.0 (2023-05-06)
Add mock for
NssClientUI module to simulate LUA client calls and NUI calls in your local browser during development.Add
getHelper()toNssUiComponentInterfaceUI module.Add new font to
NssResponsiveUI module.Add pitching to
NssAudioUI module.Add
SVG to CSS mask-imagefeature toNssSvgReplacerUI module.Prevent duplicated mouse events for
NssPadLock.Add code caching to
NssPadLock.Add
getUserInventoryandlistenInventoryChangetoNssLibsInventoryApimodule.Add
debouncedClocktoNssLibsSharedHelpermodule.Add
addEventHandlertoNssLibsClientHelperandNssLibsServerHelpermodules.XHR loading indicator now works as expected in
NssClientui module.Move GIF animation to CSS for
NssLoadingIndicatorui module.Add
setMasterVolumeInPercentandresetMasterVolumeInPercenttoNssAudioui module.Steam profile url in
NssLibsCharacterApiis now correctly formatted.Add
createObjectClonetoNssHelperui module.
0.23.0 (2023-04-03)
Encapsulate
NssLibsPromptsPromptApicallbacks in separate threads to prevent blocking the main thread.NPCmodule uses newNssLibsChunkmodule instead ofPointInRangefor better performance. The size of the chunks in theNssLibsChunkmodule is adjustable. TheNPCmodule has high radius of 100 meters and more which causes in extreme high counts of chunks in thePointOfRangemodule. In theNssLibsChunkmodule with higher chunk size the count of chunks are reduced. That saves CPU and memory usage.The
PointInRangemodule now has a limit to prevent too much CPU and memory usage at high radius.Add "buffer" chunks to
NssLibsChunkto ensure that a coordinate directly on the border of a chunk is still recognized.Add restrictions to
Promptsmodule, like allow or forbid prompt enabled on mount.Fix press/release events for prompts with multiple keys.
0.22.0 (2023-03-30)
Add new module
NssLibsChunk.Add new methods to
NssLibsPromptsGroupApi:linkToCoords- Links prompt group to specific coordinates.linkToEntity- Links prompt group to specific entity.linkToPlayer- Links prompt group to specific player.linkToEntityModels- Links prompt group to specific entity models.
Add new methods to
NssLibsPromptsPromptApi:disableOnMoveOn- Disables prompt if player moves.disableOnMoveOff- Do not disable prompt if player moves.
Extend
NssLibsPromptsPromptApito add on-press/on-release mode.Add new methods
getDecimalCount,inlineErrorandinlineWarningtoNssLibsSharedHelper.Add new method
getUidtoNssLibsClass.Add new method
disablePlaceOnGround,enablePlaceOnGroundandgetEntitytoNssLibsNpcEntityApi.Optimize system messages if a resource stops. Only messages from modules that have related dependencies to the stopped resource will be shown.
Add dependency check to
VersionCheckmodule.
0.21.2
Properties now inheriting correctly from child classes in
NssLibsClass.Refactor
Classto useNssLibsClassinternally.Remove
NssLibsClassfrom exports because "deeper" functions are not shareable in exports.Add new optional argument
entity_typetogetNearestObjectEntityinEntityInRangeApi.Add new static constants
ENTITY_TYPE_OBJECT,ENTITY_TYPE_PLAYERandENTITY_TYPE_VEHICLEtoEntityInRangeApi.NssLibsCharacterApi:getCharacterByName()now checks the steam id correctly.Replace
config.luawithconfig.demo.luato prevent overwriting the config file on update.Add
config.demo.luatoNssLibsCharacterApito offer new debug option (create copy namedconfig.luain that folder to use it).
0.21.1
Blipcolor now overwrites other blip modifiers.NPChas new methodsonShow,onHide,onTimeWindowChange,onTimeWindowChange,hasTimeWindowsandisInTimeWindow.
0.21.0
Refactor whole
NssLibsBlipmodule.
0.20.1
NssLibsPointInRangeApinow optionally ignores the nearest check for a point.Performance improvement for
NssLibsNpcApi. Only NPCs in range will be checked if they are visible by time window.
0.20.0
Add new
NPCapi. Easy to create Non-Player-Character (NPC) for your REDM resource.Optimize
NssLibsSharedHelper:toFloatmethod to prevent nil pointer exception.Add
NssLibsSharedHelper:toIntmethod.NssLibsPointInRange:unListennow consider empty chunks correctly.Add more delay to automatic restart of resources by
DependencyAutoRestartifnss_libsrestarts to prevent crashes.
0.19.0
Add new
Promptsapi.Add new
ParticleFxPlayerapi.Fix null pointer exception in
EntityInRangeapi.Fix wrong return value in
NssLibsSharedHelper:getHashKeyAdd
sendtoNssClientApito send a message to the client.playAudioofNssAudionow returns a promise which resolves when the audio is ended.Add
getId()toNssLibsPointInRangeListenerApi.Fix null pointer exception in
PointInRangeif no "on leave" callback is set.Fix calling init on source class instead of child class on inherited classes.
Fix wrong
getModelHash(togetHashKey) method inNssLibsEntityInRangeApi.getNearestObjectEntityinNssLibsEntityInRangeApiignores now listener check.Add new method
getNearestObjectEntitytoNssLibsEntityInRangeApi.Add new methods
stop,loopAudio,getDurationInPercent,getCurrentTime,getDurationtoNssAudioui component.Fix wrong admin group name in
NssLibsCharacterApi.
0.18.1
Add new method
setWebhookUrl,setUsername,setAvatarUrlandmessageto Discord API (NssLibsDiscordApi).Extend Discord API documentation.
0.18.0
Add integrated sound fx to
NssAudioui component.Update
NssModalui component with new integrated sound fx.Add server player id to character data if available.
Add date and timestamp methods to helper modules.
Loading indicator now hides correctly on
NssClientrequests with callbacks.Add events to call "nss_libs loaded and started".
Add
getDate(format)toNssLibsClientHelpermodule.Move some sensitive config vars to
internal_cfg.lua.Add "Last allowed version" feature to version check.
Prevent loading version urls from cache.
Refactor
Helpermodule into separate server and client helper modules.Fix wrong argument name in
NssLibsSharedHelper:getHashKey().Refactor
EntityInRangeApi(clear instead destroy item sets).Add loading indicator to
NssClientui component if a callback is given topostmethod.Add
getUniqueId()method toNssHelperclass.Fix missing fade animation for
NssLoadingIndicatorui component.
0.17.0
Added
NssLoadingIndicatorui component.Added
NssAudioui component.Switch all ui components to new base class.
Fix "editable" method in
NssModalui component.
0.16.5
NssModalnow consider if the user currently typing in an editable element (like input or textarea) and prevents the modal from closing if a close key was pressed during typing.Add some content to some readme files ;)
0.16.4
Add method
strTrimtoNssLibsHelper.Add method
getCharacterByNametoNssLibsCharactermodule.Add sounds to
NssButtonsui component.Add
NssButtonstoNssConfirmui component.Add
Character:getCharacterByName.
0.16.3
Rename
HelpertoNssLibsHelperto avoid namespace conflicts.Remove deprecated custom
Promisesclass.Add
NssClientLUA module toNssClientui component.Fix method name in
Inventorymodule.Add timeout to
ServerEvent.awaitmethod.Add README.md for
Discordmodule.Add
NssModalui component.
0.16.2
Extend
Helpermodule withcreateWrapperFinder,getKeysFromTable,getCurrentTimestamp,waitUntilFirstStarted,waitUntilStartedanddoUntilTimeoutfunctions.Charactermodule now waits/searches for first loaded character framework.Inventorymodule now waits/searches for first loaded inventory framework.
0.16.1
Add
RegisterUsableItemtoInventorymodule.
0.16.0
Add
DatabaseUpdatermodule: Automatic database updater for resources based on theVersionCheckmodule.Extend
VersionCheckmodule: AddgetCurrentVersionfunction.
0.15.2
Fix entry check in
EntityInRangeController.Add possibility to create
config.luafile each LUA module.Refactor
Keyboardmodule to new requirements.
0.15.1
Replace error messages in VorpCore wrapper of
Charactermodule withprintcalls.Extend
Charactermodule with new methods likegetIdentifiers,getSteamId,getSteamProfileUrl,getDiscordId,getDiscordProfileUrl,getRedmCharacterNameand more.Extend
Helpermodule with new methodsisSteamWebApiKeyAvailableandstrSplit.
0.15.0
Refactor
EntityInRangemodule to new api style.Add
onResourceStoplogic to remove listeners from stopped resources automatically.See README.md for more information.
0.14.3
Add new helper method
roundandgetEmptyFunctiontoHelper.Mark
Promiseas deprecated.
0.14.2
Prevent
DependencyAutoRestartfrom restarting resources that never was started before.
0.14.1
Prevent
DependencyAutoRestartfrom restarting resources on server startup.
0.14.0
Add new
DependencyAutoRestartmodule. See README.md for more information.nss_libsnow usingDependencyAutoRestartmodule to auto-restart resources that havenss_libsas dependency.
0.13.1
Switch to more readable front for NssPadLock.
0.13.0
Add new ui component
NssClient. See README.md for more information.Add some README.md files to ui components.
0.12.2
Fix wrong path to sound files in NssPadLock.
Add new
DisableAutomaticmode in NssPadLock.Change behaviour of
onNewCodelistener in NssPadLock.
0.12.1
Add translations support for NssPadLock.
0.12.0
NssUiComponentInterface now automatically load styles of component if instance is created and imported directly.
New component NssLockPad
0.11.3
Use new css module loader instead of relative paths.
0.11.2
NssSimpleTextEditor
Order of text sections are now correct if inserted between two existing sections.
Last updated
Was this helpful?