Rock Bug
Describe the bug Props float in air sometimes
Framework The framework your server uses (e.g. Ox, ESX, QBox, etc). QB core
Inventory The inventory your server uses (e.g. Ox, QB, Quasar, etc) OX INV
Resource version
The version number listed in fxmanifest.lua. Latest
Any word?
Any word?
No word. When I have time I'll try and figure out repro steps. If anyone has any more info they can contribute on how to replicate this consistently or any info at all that may help - chime in! Would be a great help.
@IamLation looks like something client sided as it isn't synced for everyone. Usually happens when multiple people are around. There was around 7-8 people in my server there at the time
If you want I can have a look at it
ok i played around with this if anyone has this issue I find its always with the vectors replace all the vectors with these and you should be good its going to be in the config/shared folder -- The coordinates these ores spawn at ores = { [1] = vec3(2949.8770, 2851.0256, 47.3509), [2] = vec3(2955.0566, 2850.1597, 46.6026), [3] = vec3(2959.4751, 2848.0740, 45.8103), [4] = vec3(2952.2109, 2847.9136, 46.2530), [5] = vec3(2956.3149, 2845.9241, 45.5613), [6] = vec3(2947.4197, 2848.0171, 46.7500), [7] = vec3(2961.4399, 2844.1255, 45.0608), } }, [2] = { models = { 'prop_rock_3_b', 'prop_rock_3_d', 'prop_rock_3_f' }, level = 1, duration = { min = 2500, max = 2500 }, reward = { { item = 'ls_coal_ore', min = 1, max = 2 }, }, xp = { min = 1, max = 3 }, respawn = 25000, ores = { [1] = vec3(2938.3345, 2808.9683, 41.1674), [2] = vec3(2930.3652, 2811.0193, 42.4722), [3] = vec3(2925.0359, 2807.3450, 41.9333), [4] = vec3(2927.2339, 2799.7976, 40.3330), [5] = vec3(2930.2278, 2794.4519, 39.6447), [6] = vec3(2935.8081, 2795.5881, 39.6888), [7] = vec3(2940.8623, 2800.0393, 39.9543), [8] = vec3(2935.3396, 2802.2466, 40.2976), [9] = vec3(2932.2173, 2806.7004, 40.2299), [10] = vec3(2941.5352, 2805.1804, 40.1859), } }, [3] = { models = { 'prop_rock_3_b', 'prop_rock_3_d', 'prop_rock_3_f' }, level = 2, duration = { min = 7500, max = 7500 }, reward = { { item = 'ls_iron_ore', min = 1, max = 2 }, }, xp = { min = 2, max = 6 }, respawn = 45000, ores = { [1] = vec3(3027.8311, 2772.1812, 54.4793), [2] = vec3(3030.8904, 2767.5234, 55.4680), [3] = vec3(3028.2546, 2764.4390, 55.0667), [4] = vec3(3030.5837, 2760.3337, 56.4613), [5] = vec3(3025.9062, 2756.8679, 55.0076), [6] = vec3(3026.0994, 2751.2605, 56.2785), [7] = vec3(3020.6831, 2748.7808, 54.5372), } }, [4] = { models = { 'prop_rock_3_b', 'prop_rock_3_d', 'prop_rock_3_f' }, level = 3, duration = { min = 7500, max = 7500 }, reward = { { item = 'ls_silver_ore', min = 1, max = 2 }, }, xp = { min = 3, max = 9 }, respawn = 75000, ores = { [1] = vec3(2969.4246, 2697.7976, 53.5088), [2] = vec3(2966.6487, 2694.4221, 53.6609), [3] = vec3(2962.9324, 2697.2637, 53.6642), [4] = vec3(2953.2451, 2697.2317, 54.1387), [5] = vec3(2950.2148, 2700.9580, 53.8590), } }, [5] = { models = { 'prop_rock_3_b', 'prop_rock_3_d', 'prop_rock_3_f' }, level = 4, duration = { min = 13000, max = 13000 }, reward = { { item = 'ls_gold_ore', min = 1, max = 2 }, }, xp = { min = 4, max = 12 }, respawn = 120000, ores = { [1] = vec3(3041.3960, 2719.4390, 62.1831), [2] = vec3(3047.6887, 2717.8809, 61.7571), [3] = vec3(3045.9670, 2722.4072, 62.1737), [4] = vec3(3052.4326, 2721.9761, 62.1375), [5] = vec3(3052.2554, 2728.0950, 62.6344), [6] = vec3(3058.0610, 2731.1460, 63.6821), [7] = vec3(3055.9949, 2737.5295, 63.3239), [8] = vec3(3060.6294, 2741.4951, 63.5270), [9] = vec3(3058.5295, 2746.5312, 63.3540), [10] = vec3(3060.2603, 2750.5828, 63.3339), } },
The same issue we have
The same issue we have
Try my fix up above should set you straight would love to know if it worked for others Ive had no issues since i tweaked it a bit
I'm also looking for more feedback on the result of using @Zereth616's coords above. If it helps resolve the issue I'll update the default coords with those!
the same for me
ok try adjusting the last numbers in the vectors down by 1 so if its 58 make it 57 and then try that. might vary per person.
example: 63.3339 change to 62.3339
ok try adjusting the last numbers in the vectors down by 1 so if its 58 make it 57 and then try that. might vary per person.
example: 63.3339 change to 62.3339
yes now is perfect
@IamLation Would this help the possibility that it wouldn't happen?
local groundFound, groundZ = GetGroundZFor_3dCoord(ore.x, ore.y, ore.z, false)
local oreZ = groundFound and groundZ or ore.z
local entity = CreateObject(model, ore.x, ore.y, oreZ, false, false, false)