Config = {} Config.BlackBarSize = 0.20 HideHud = function(status) end --=================================================================== -- SCENARIOS --=================================================================== -- You can add as many scenarios you want ( like before going to jail, or to transfer player from city to paleto or sandy , or any other idea you have like scenario for something ) Config.Scenarios = { ['Welcome'] = { -- this name must stay Welcome if you are using it for PostCharacterCreator StartWalkLocation = vector4(2628.1289, 2936.3772, 40.4228, 57.3484), -- location where player scenario starts StopWalkingLocation = vector4(2623.7268, 2938.6338, 40.4228, 64.0300), -- walking from coords to coords must be straight line -- Location where train will be spawned spawnLocation = vector4(2614.9763, 2944.1470, 40.1375, 140.1980), -- Final Destination where train will stop and player gets out targetLocation = vector3(324.7359, -1796.8044, 28.1226), TrainModel = 24, TrainDirection = false, -- its true/false PlayerInCarriage = true, DriverModel = 'u_m_m_edtoh', -- location where player will be teleported after train stopes at station StationCoords = vector4(313.8152, -1784.0806, 28.1811, 236.6900), PostScenario = function() -- this is client side function -- You can trigger any client or server event here / or any client export end, }, -- this is our example for video you can edit it or use it ( here we replaced train with another model but you can use any model you want ) ['Jail'] = { StartWalkLocation = vector4(184.5892, -1908.8032, 22.8594, 227.5445), -- location where player scenario starts StopWalkingLocation = vector4(206.6665, -1933.1744, 22.3089, 216.1803), -- walking from coords to coords must be straight line -- Location where train will be spawned spawnLocation = vector4(212.1824, -1931.2069, 22.7389, 318.9960), -- Final Destination where train will stop and player gets out targetLocation = vector3(1965.6018, 2419.7219, 60.2874), TrainModel = 20, TrainDirection = true, -- its true/false PlayerInCarriage = true, DriverModel = 'u_m_m_edtoh', -- location where player will be teleported after train stopes at station StationCoords = vector4(1851.5878, 2585.7178, 45.6719, 85.5455), PostScenario = function() -- this is client side function -- You can trigger any client or server event here / or any client export -- for example here add your jail logic ( to send player to jail ) end, }, ['Paleto'] = { StartWalkLocation = vector4(-459.9373, 5368.5127, 81.2990, 251.0909), -- location where player scenario starts StopWalkingLocation = vector4(-453.2338, 5366.6680, 81.2989, 253.9655), -- walking from coords to coords must be straight line -- Location where train will be spawned spawnLocation = vector4(-447.7654, 5358.0933, 81.9381, 181.3557), -- Final Destination where train will stop and player gets out targetLocation = vector3(1810.5146, 3510.3872, 38.7271), TrainModel = 24, TrainDirection = false, -- its true/false PlayerInCarriage = true, DriverModel = 'u_m_m_edtoh', -- location where player will be teleported after train stopes at station StationCoords = vector4(1825.2296, 3508.4880, 38.3468, 28.0931), PostScenario = function() -- this is client side function -- You can trigger any client or server event here / or any client export end, }, } --======================================================================= -- HOW TO USE THIS RESOUCE --======================================================================= --[[ If you want to use This Resource Scenarios you can call it from Client using event : --@ type is 'Welcome','Jail' or any other scenario you created TriggerEvent('train:startscenario',type) If you want to use it from server call it like this : TriggerClientEvent('train:startscenario', source, type) ]]