Jump to content

[HELP] Specific vehicle modifaction's


Dizzle

Recommended Posts

hi i need a little help from you guys

 

what i want to do is replace a specific vehicle on shop ID

since we have multiple vehicle names on the model 

like supra is 945 on the model jester (559)

and celica gt4(1066) is on model jester (559) so the enginereplace wont work because it changed the supra to.

so i have created this code but it wont work

local vt = getVehicleType
function getVehicleType( ... )
	local ret = vt( ... )
	if ret == "" then
		return "applymods"
	end
	return ret
end

function applyMods()
		txdcel = engineLoadTXD ( "jester.txd" )
	engineImportTXD ( txdcel, 417 )

	dffcel = engineLoadDFF ( "jester.dff" )
	engineReplaceModel ( dffcel, 417 )
	end
addEventHandler("onClientResourceStart", getResourceRootElement(), applyMods)

 The shop ids are via mysql databases

 

i was thinking of export mysql function to get shop id and if shopid is 1066 then replace the car with that shop id

please help me

 

-Dizzle

Link to comment
4 minutes ago, NeXuS™ said:

You can't have 2 different models on the same car.

its only name that discribe the model

but isnt it posible if shopid is (its unique id)

if shop id is that one then replace the model (if it isnt then dont replace it?)

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...