こんにちは!
をダウンロードしましたか? クルーフォン/gcPhoneで番号の生成に問題がありますか?
If you have a problem with the number-generation or number-showing and they are like ###-#### ?
解決策は簡単だ!
この関数を es_extended client.lua に追加する:
TriggerServerEvent('crew:onPlayerLoaded', GetPlayerServerId(PlayerId()))
これがその例だ:
AddEventHandler('esx:restoreLoadout', function( local playerPed = PlayerPedId() ローカルammoTypes = {}(弾薬の種類 RemoveAllPedWeapons(playerPed, true) for k,v in ipairs(ESX.PlayerData.loadout) do ローカル 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) 終了 もしammoTypes[ammoType]でなければ AddAmmoToPed(playerPed, weaponName, v.ammo) ammoTypes[ammoType] = true 終了 終了 TriggerServerEvent('crew:onPlayerLoaded', GetPlayerServerId(PlayerId())) isLoadoutLoaded = true end)
コメントを追加