Jump to content

MajdMTA

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by MajdMTA

  1. Hello, I am selling my resources, I won't give any picture now, the scripts can be tested in-game for more security, If you wan't to know if they are working fine! And the Gamemode is : Cops 'n' Robbers, also None have this scripts, If you like them, We can talk with the price In game or in the Facebook. Here is my FB: https://www.facebook.com/Ebaheem.sh
  2. Example: If the car price is : 5000 for example, I wanna it 5,000
  3. How I can format/convert a Grid List number? please help me.
  4. This is for my Group system script,
  5. Hello I've tried to make this. function togglesetjobWindow (player) if (guiGetVisible(setjobWindow)) then local g = if getElementData(player, "Group") if (g == "HoBoS") then guiSetVisible(setjobWindow, false) showCursor(false) else guiSetVisible(setjobWindow, true) showCursor(true) end end end addCommandHandler("gojob", togglesetjobWindow, false) Please help me guys.
  6. When i pick it... IT will be in Hospital for example okay? and if i'm in different place? think about that.
  7. Man, idk, also I'm tried.. only works with getElementPosition for localPlayer.
  8. Guys, none of this codes worked.. you can lock it.
  9. I'll give you more informations.... This is zone for my F2 vehicles system script, I do it when you press "Pick" Button the vehicle zone (City) will be seen instead of Label_Zone Label..
  10. Yes, sure ido, I put the Event Handler
  11. Didn't work, thanks for your hard work guys.
  12. Didn't work, only works with getElementPosition, for player not for vehicle, cause it hidden.
  13. Didn't work, look at the full function function buttonPick(theVehicle) if (source == Button_VS_sn) then if isElement(theVehicle) and getElementType(theVehicle) == "vehicle" then local x, y, z = getElementPosition(theVehicle) local vehicleZoneName = getZoneName(x, y, z) guiSetText(Label_Zone, "", vehicleZoneName) end end end addEventHandler("onClientGUIClick", guiRoot, buttonPick) @Dimos7
  14. It's bugged, and it's saying in the text "false"
  15. Help me guys, with this function function buttonPick(vehicle) local x, y, z = getElementPosition(localPlayer) local vehicleZoneName = getZoneName ( x, y, z ) guiSetText(zonexad, "Veh Zone: "..vehicleZoneName) end end I wanna it getting zone for vehicle, I tried to remove (LocalPlayer) It won't work.
  16. I've spawned a car, and tried /hide It's didn't work, I mean, In outputChatBox there's message for me ("No vehicle is spawned") So, it's another problem, isn't /hide worked? Lemme give you another one addEvent("DestroyMyVehicle", true) addEventHandler("DestroyMyVehicle", root, function (id) local vehicle = getVehicleByID(id) if isElement(vehicle) then local data = dbPoll(dbQuery(db, "SELECT * FROM VehicleList WHERE Account = ? AND ID = ?", getAccountName(getPlayerAccount(source)), id), -1) if type(data) == "table" and #data ~= 0 then local aman = getVehicleOccupant(vehicle) destroyVehicle(vehicle) if isElement(source) and playerVehicles[source] then for i=1,#playerVehicles[source] do if playerVehicles[source][i] == vehicle then table.remove(playerVehicles[source],i) break end end else playerVehicles[source] = nil end exports.CSFtexts:output ("Your Vehicle "..getVehicleNameFromModel(data[1]["Model"]).." has been destroyed.", source, 255, 85, 0, true) cur = getElementData(source,"spawnedcars") or {} for ind,veh in ipairs(cur) do if veh == getVehicleNameFromModel(data[1]["Model"]) then table.remove(cur,ind) end end setElementData(source,"spawnedcars",cur) else exports.CSFtexts:output("Select the Vehicle that you want to destroy.", source, 255, 85, 0, true) end else exports.CSFtexts:output("Your Vehicle is not spawned.", source, 255, 85, 0, true) end end) Can you add /hide for this function?
  17. I've spawned a car, and tried /hide It's didn't work, I mean, In outputChatBox there's message for me ("No vehicle is spawned")
  18. And now it's worked, but My I Pick a car, and tried /hide in the outputChatBox("No vehicle is spawned")
  19. I've tried /hide it won't work, and i've tried /debugscript no errors.
  20. function hidingaVehicle() local vehicle = getVehicleByID(id) if isElement(vehicle) then local data = dbPoll(dbQuery(db, "SELECT * FROM VehicleList WHERE Account = ? AND ID = ?", getAccountName(getPlayerAccount(source)), id), -1) if type(data) == "table" and #data ~= 0 then local aman = getVehicleOccupant(vehicle) destroyVehicle(vehicle) if isElement(source) and playerVehicles[source] then for i=1,#playerVehicles[source] do if playerVehicles[source][i] == vehicle then table.remove(playerVehicles[source],i) break end end else playerVehicles[source] = nil end outputChatBox("You destroy your vehicle", source, 255, 0, 0) cur = getElementData(source,"spawnedcars") or {} for ind,veh in ipairs(cur) do if veh == getVehicleNameFromModel(data[1]["Model"]) then table.remove(cur,ind) end end setElementData(source,"spawnedcars",cur) else outputChatBox("No vehicle is spawned", source, 255, 0, 0) end else outputChatBox("No vehicle is spawned ", source, 255, 0, 0) end end addCommandHandler ( "hide", hidingaVehicle ) Help please.
×
×
  • Create New...