Skip to content

Conversation

@Xenius97
Copy link
Contributor

@Xenius97 Xenius97 commented Nov 13, 2025

Closes #3963

This PR adds smoke trail management on server side. Prevoriously this was only available on client side.

MTA_.San.Andreas.DEBUG.2025-11-13.13-24-24.mp4
addCommandHandler("smoketrail", function(player)
	local vehicle = getPedOccupiedVehicle(player)
	if not vehicle then
		outputChatBox("You must be in a vehicle to use this command.", player, 255, 0, 0)
		return
	end
	
	local state = isVehicleSmokeTrailEnabled(vehicle)
	setVehicleSmokeTrailEnabled(vehicle, not state)
	outputChatBox("Smoke trail " .. (state and "disabled" or "enabled") .. " for your vehicle.", player, 0, 255, 0)
end)

@Xenius97 Xenius97 changed the title Add SetSmokeTrailEnabled and IsSmokeTrailEnabled serverside Add setVehicleSmokeTrailEnabled and isVehicleSmokeTrailEnabled serverside Nov 13, 2025
@Xenius97 Xenius97 marked this pull request as draft November 13, 2025 15:04
@Xenius97 Xenius97 requested a review from FileEX November 13, 2025 16:27
@Xenius97 Xenius97 marked this pull request as ready for review November 13, 2025 16:51
@FileEX FileEX added the enhancement New feature or request label Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SetSmokeTrailEnabled and IsSmokeTrailEnabled serverside

2 participants