Jump to content

Krayzee

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Krayzee

  1. It works great, thanks! Now to find out more stuff
  2. Could you please give me guidance on how to script it? I know how to get it to recognise the sound files but I don't know how to do the .lua part. Is there a link anywhere? I've tried using the search bar but all I get is deathmatch help and nothing about race.
  3. It's on race, hence I'm looking for the countdown timer. I've managed to replace the images that show up but I can't find the audio files.
  4. I can't find the resource that holds the files.
  5. How is it that I change the audio for the 3, 2, 1 countdown in race mode? It might not be a scripting question but I don't know
  6. Krayzee

    Help..

    So I'm using the script from the wiki page that just allows you to spawn in Los Santos and create a vehicle but when I start the resource for the server nothing happens, it just shows a black screen. function joinHandler() local x = 1959.55 local y = -1714.46 local z = 10 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Script Testing", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) function createVehicleForPlayer(thePlayer, command, vehicleModel) local x,y,z = getElementPosition(thePlayer) -- get the position of the player x = x + 5 -- add 5 units to the x position local createdVehicle = createVehicle(tonumber(vehicleModel),x,y,z) -- check if the return value was ''false'' if (createdVehicle == false) then -- if so, output a message to the chatbox, but only to this player. outputChatBox("Your vehicle wasn't created.",thePlayer) end end addCommandHandler("createvehicle", createVehicleForPlayer) How can I fix it? I want to get good at scripting so that I can script for a race server.
×
×
  • Create New...