Hello!
Did you download the Crewphone/gcPhone and have a problem with generating the number?
If you have a problem with the number-generation or number-showing and they are like ###-#### ?
The solution is easy!
Add this function to the es_extended client.lua:
TriggerServerEvent(‘crew:onPlayerLoaded’, GetPlayerServerId(PlayerId()))
Here’s as example:
AddEventHandler('esx:restoreLoadout', function( local playerPed = PlayerPedId() local ammoTypes = {} RemoveAllPedWeapons(playerPed, true) for k,v in ipairs(ESX.PlayerData.loadout) do local weaponName = v.name GiveWeaponToPed(playerPed, weaponName, 0, false, false) SetPedWeaponTintIndex(playerPed, weaponName, v.tintIndex) local ammoType = GetPedAmmoTypeFromWeapon(playerPed, weaponName) for k2,v2 in ipairs(v.components) do local componentHash = ESX.GetWeaponComponent(weaponName, v2).hash GiveWeaponComponentToPed(playerPed, weaponName, componentHash) end if not ammoTypes[fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"][ammoType] then AddAmmoToPed(playerPed, weaponName, v.ammo) ammoTypes[ammoType] = true end end TriggerServerEvent('crew:onPlayerLoaded', GetPlayerServerId(PlayerId())) isLoadoutLoaded = true end)[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]