99isme Posted March 30, 2021 Share Posted March 30, 2021 (edited) function getHourlyRentalCost(vehicle) local payment local _vehicle if isElement(vehicle) then _vehicle = getElementModel(vehicle) else _vehicle = vehicle end payment = math.floor(exports.vehicles:getVehicleCost(_vehicle) / 333) or 0 if (payment > MAX_HR_PAYMENT) then payment = MAX_HR_PAYMENT end return payment end attempt to perform arithmetic on a nil value Edited March 30, 2021 by 99isme Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now