• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About homie99

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Okay IIYAMA, You can close this topic. I don"t have time to learn Lua .
  2. Okay, Okay I think the problem is getMarkerColor, in my view it should be something with checkpoints, I made this part of code with tutorial and it still doen'st works ? what Can I change ? ;) function checkpoint:getCheckpoint(i) local realcheckpoint = g_Checkpoints[i] local checkpoint = {} for k,v in pairs(realcheckpoint) do checkpoint[k] = v end checkpoint.vehicle = self:getRandomVehicle(checkpoint) return checkpoint vehiclesid = {429, 541, 480 , 411 , 565} function giveRandomCar( hitElement) local r = getMarkerColor(source) local x,y,z = getElementPosition(hitElement) if r == 255 and getElementType(getVehicleController(hitElement)) == "Player" then local veh = createVehicle(vehiclesid[math.random(1,#vehiclesid)],x,y,z,0,0,getElementRotation(hitElement)) if veh then warpPedIntoVehicle(getVehicleController(hitElement),veh) if getElementType(hitElement) == "Vehicle" then destroyElement (hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement() ,giveRandomCar)
  3. Any ideas ? , any body ? 😆
  4. Hi Thank you komal for your job, but I don't know why It still doesn't works. This is a link for this which i used. Can you check it ? (I checked the race checkpoint and there was to color r-225 ) http://www.mediafire.com/file/7c1njkk0hns9j5s/test.rar/file
  5. Hi I was browsing the forum and I' ve found this topic, I know it's very old topic ,but I can use this script in other way for the server, how can I fix this script ? and make it useful, cause This code does't work ( I' ve specially made account in this forum to solve this problem guys 😉) Can you help me with this ?