Darkrp help

people can delete own cars in button c, how fix it.

You can use the

SANDBOX:CanProperty hook, check if the entity is a vehicle and the player owns the entity, then prevent them from using it.
[lua]
hook.Add(“CanProperty”, “block_removing_own_cars”, function(ply, property, ent)
if (ent:IsVehicle() and ent:CPPIGetOwner() == ply and property == “remover”) then return false end
end)
[/lua]

thanks you, its work