Its not a problem of my script…The problem is appeared has the the last update and its same for carmageddon (Carmageddon Won't Start) mod he use the native ApplyForceToEntity and he does not work since the last update…
Hmm i have verified and no… And my code is good… ApplyForceToEntity(ped, 1, pos.x,pos.y,pos.z, 0,0,0, 1, false, true, true, true, true) its the native…
Its not a issue of the carmageddon script… i dont use the caramgeddon i just make my script and i have a error… And the user of Carmageddon have the same… U have a solution for resolve this ?
Yes but its not a problem of “me”… Try carmageddon… He’s broken since the update, and its same for my addon “flash” its not a problem of my code… If i remove the native i dont have any error… But if i remove this line my fast run code for Flash does not work dude
Citizen.CreateThread(function() --Superman Mode
while true do
Wait(1)
local coords = Citizen.InvokeNative(0x0A794A5A57F8DF91, GetPlayerPed(-1), Citizen.ResultAsVector())
local SupermanZ
if IsControlPressed(1, 33) then
SupermanZ = 5.0
else
SupermanZ = 0.225
end
if (supermanmode == true) then
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("gadget_parachute"), 1, false, false)
if IsPedInParachuteFreeFall(GetPlayerPed(-1)) then
ApplyForceToEntity(GetPlayerPed(-1), 1, coords.x * 2, coords.y * 2, SupermanZ, 0.0, 0.0, 0.0, 1, false, true, true, true, true)
end
end
end
end)
Did you try using float values instead of int by specifying .0 at the end of you numbers (especialy rotations x, y, z)?
Also, did you specified resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' at the top of your resource so your resource can use natives_universal.lua?