Brucisfilde

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Brucisfilde

  • Rank
    I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.
  1. Ok bro, i find this, I think that's it. function giveMeVehicles(vehID) local px, py, pz, prot local element = getPedOccupiedVehicle(source) or source local px,py,pz = getElementPosition(element) local _,_,prot = getElementRotation(element) local posVector = Vector3(px,py,pz+2) local rotVector = Vector3(0,0,prot) local vehMatrix = Matrix(posVector,rotVector) local vehicleList = g_PlayerData[source].vehicles if not vehID then return end if not table.find(getOption('vehicles.disallowed'), vehID) then if #vehicleList >= getOption('vehicles.maxperplayer') then unloadVehicle(vehicleList[1]) end local vehPos = posVector+vehMatrix.right*3 local vehicle = Vehicle(vehID, vehPos, rotVector) or false if vehicle then vehicle.interior = source.interior vehicle.dimension = source.dimension if vehicle.vehicleType == "Bike" then vehicle.velocity = Vector3(0,0,-0.01) end table.insert(vehicleList, vehicle) g_VehicleData[vehicle] = { creator = source, timers = {} } if g_Trailers[vehID] then if getOption('vehicles.idleexplode') then g_VehicleData[vehicle].timers.fire = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, vehicle) end g_VehicleData[vehicle].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, vehicle) end end else errMsg(getVehicleNameFromModel(vehID):gsub('y$', 'ie') .. 's are not allowed', source) end end
  2. Hello, I'm wondering change car spawn color to white in freeroam but i'm not have idea of how make this, please anyone helpme. Thx --------------------------- -- Create vehicle window --------------------------- function createSelectedVehicle(leaf) if not leaf then leaf = getSelectedGridListLeaf(wndCreateVehicle, 'vehicles') if not leaf then return end end server.giveMeVehicles(leaf.id) end wndCreateVehicle = { 'wnd', text = 'Create vehicle', width = 300, controls = { { 'lst', id='vehicles', width=280, height=340, columns={ {text='Vehicle', attr='name'} }, rows={xml='vehicles.xml', attrs={'id', 'name'}}, onitemdoubleclick=createSelectedVehicle, DoubleClickSpamProtected=true, }, {'btn', id='create', onclick=createSelectedVehicle, ClickSpamProtected=true}, {'btn', id='close', closeswindow=true} } } function createVehicleCommand(cmd, ...) local args = {...} vehID = getVehicleModelFromName(table.concat(args," ")) or tonumber(args[1]) and math.floor(tonumber(args[1])) or false if vehID and vehID >= 400 and vehID <= 611 then server.giveMeVehicles(vehID) else errMsg("Invalid vehicle model") end end addCommandHandler('createvehicle', createVehicleCommand) addCommandHandler('cv', createVehicleCommand)