
MajdMTA
Members-
Posts
52 -
Joined
-
Last visited
Everything posted by MajdMTA
-
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
- 1 reply
-
- 1
-
-
Example: If the car price is : 5000 for example, I wanna it 5,000
-
How I can format/convert a Grid List number? please help me.
-
This is for my Group system script,
-
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.
-
When i pick it... IT will be in Hospital for example okay? and if i'm in different place? think about that.
-
Man, idk, also I'm tried.. only works with getElementPosition for localPlayer.
-
Guys, none of this codes worked.. you can lock it.
-
Yes, exactly.
-
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..
-
Yes, sure ido, I put the Event Handler
-
Didn't work, thanks for your hard work guys.
-
Didn't work, only works with getElementPosition, for player not for vehicle, cause it hidden.
-
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
-
It's bugged, and it's saying in the text "false"
-
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.
-
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?
-
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")
-
And now it's worked, but My I Pick a car, and tried /hide in the outputChatBox("No vehicle is spawned")
-
I've tried /hide it won't work, and i've tried /debugscript no errors.
-
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.
-
Tried.. vehicle didn't hide.