![]() ![]() But everytime i exit the car i have to restart the mod on "resources". I recommend that you first play around with the hedit resource and then just copy the values over to your script.īro, i found a handling script similar to this. "'" ) end end end end for _, v in ipairs ( getElementsByType ( "vehicle" )) do if v and predefinedHandling then for k, vl in pairs ( predefinedHandling ) do setVehicleHandling ( v, k, vl ) end end end function resetHandling () for model in pairs ( predefinedHandling ) do if model then for k in pairs ( getOriginalHandling ( model )) do setModelHandling ( model, k, nil ) end end end for _, v in ipairs ( getElementsByType ( "vehicle" )) do if v then local model = getElementModel ( v ) if predefinedHandling then for k, h in pairs ( getOriginalHandling ( model )) do setVehicleHandling ( v, k, h ) end end end end end addEventHandler ( "onResourceStop", resourceRoot, resetHandling ) Local predefinedHandling = for i, v in pairs ( predefinedHandling ) do if i then for handling, value in pairs ( v ) do if not setModelHandling ( i, handling, value ) then outputDebugString ( "* Predefined handling '". On the wiki page there is an excellent example on how to do so: You have to use the setVehicleHandling function. In case yes how could i modify this on the resources? Someone can help me ?
0 Comments
Leave a Reply. |