Jump to content

ReeferMadness

Members
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

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

ReeferMadness's Achievements

Square

Square (6/54)

0

Reputation

  1. What I'm trying to do is set up colors on the map sort of like gang wars in GTA:SA. This way, the colors of a zone will distinguish between two gangs in my gamemode
  2. I get: Database query failed: 3 values for 2 columns for the addNumber function.
  3. What is SQL? Im looking over some of the documentation and it's making my head spin haha
  4. I need to find out how to find a player by checking for their account data for an SMS system. When you buy a phone, it gives you a random 6 digit number then sets it under your account data, this way you are able to have the same number every time you log in. Now, in my gui I have an edit box/memo for typing in a # and message, then it triggers a server event which checks: 1.)is the number entered stored in an account data and 2.)Who is the player that has that specific number. How do I do this?
  5. That would be all I need thanks! I will PM you if I have any other encounters
  6. got it fixing, I just needed to put source instead of player and now im just having issues with turning the car off after exit
  7. For those who don't know carhopping is opening an unlocked car and looting it (taking change and whatnot valuables people leave in their car), but not taking the car. /spawn spawns an unlocked baitCar when you enter any vehicle and that vehicle is a bait car, the player will freeze for 15 seconds, player will force exit, a message will say "Looting..." and a small amount of cash is handed to the player. My problem is the getPedOccupiedVehicle, it's getting the vehicle element instead of the player and im wondering why --NPC CARS function createBaitCar(player,command) baitCar = createVehicle(551, 2321, -1951 , 14,0,0,90) baitCarChance = 1 if baitCarChance == 1 then setVehicleLocked(baitCar, false) outputChatBox("Created unlocked bait car.",player) elseif baitCarChance > 1 then setVehicleLocked(baitCar, true) outputChatBox("Created locked bait car.",player) end end function carHop(vehicle,player) hoppedCar = getPedOccupiedVehicle(player) if hoppedCar == baitCar then outputChatBox("Looting...") end end addCommandHandler("spawn", createBaitCar ) addEventHandler("onPlayerVehicleEnter", getRootElement(), carHop)
  8. Turns out that the marker was slightly submerged into the floor. Its working perfectly now thanks everyone in this forum topic!
  9. I dont have the meta.xml on me right now but I know it was working because the teleport script was part of one big server script that had other commands I wrote that were also working
  10. --MARKERS motelOutside = createMarker( 2333.5, -1943.5, 14, "cylinder", 1, 255, 255, 0, 170 ) motelInside = createMarker( 2215, -1150.5, 1024.5, "cylinder", 1, 255, 255, 0, 170 ) setElementInterior(motelInside, 15, 2215, -1150.5, 1024) function motel(player) if (source == motelOutside and getElementType(player) == "player") then setElementInterior(player, 15, 2216,-1150.5,1025) setElementFrozen(player,false) setTimer(setElementFrozen, 1000, 1, player, false) outputChatBox("Entering the motel...", player) elseif (source == motelInside and getElementType(player) == "player") then setElementInterior(player, 0, spawnX,spawnY,spawnZ) setElementFrozen(player,false) setTimer(setElementFrozen, 1000, 1, player, false) end end addEventHandler("onMarkerHit", root, motel)
  11. I dont get a message in the console from debug
  12. I replaced this (took out coordinates x,y,z) and still running into the same issue
  13. --MARKERS motelOutside = createMarker( 2333.5, -1943.5, 14, "cylinder", 1, 255, 255, 0, 170 ) motelInside = createMarker( 2215, -1150.5, 1024.5, "cylinder", 1, 255, 255, 0, 170 ) setElementInterior(motelInside, 15, 2215, -1150.5, 1024)
×
×
  • Create New...