• Passenger Mod Problem ?
    0 replies, posted
Hello guys, i have DarkRP 2.5.0 i have: Passenger Mod and RocketMania Car Dealer, but for some reason the Passenger Mod ( default one from Garrysmod ) is sending me errors, this error actually: [lua] [ERROR] gamemodes/darkrp/gamemode/modules/passengermodcompat.lua:2: attempt to index local 'ent' (a nil value) 1. fn - gamemodes/darkrp/gamemode/modules/passengermodcompat.lua:2 2. Call - addons/ulib/lua/ulib/shared/hook.lua:183 3. BuyCar - addons/3d_car_dealer/lua/entities/rm_car_dealer/init.lua:145 4. RX3DCar_SpawnStoredCar - addons/3d_car_dealer/lua/autorun/3dcardealer_permsystem.lua:233 5. func - addons/3d_car_dealer/lua/autorun/3dcardealer_shopvgui.lua:180 6. unknown - lua/includes/modules/net.lua:31 [/lua] Any idea guys of how i can fix it? Passenger Mod File ( First Lines ) [lua] local function onBought(ply, ent) for k,v in pairs(ent.Seats or {}) do v:keysOwn(ply) end end hook.Add("playerBoughtVehicle", "PassengerModCompatibility", onBought) hook.Add("playerBoughtCustomVehicle", "PassengerModCompatibility", function(ply, _, ent) onBought(ply, ent) end) [/lua]
Sorry, you need to Log In to post a reply to this thread.