Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
CSS is easy as hell lol anubhav.agarwal87 add me i will help you.
-
Make it in english please!
-
aclGetGroup getPlayerAccount isObjectInACLGroup
-
LOL? Checking if player type is vehicle?? hehehe local t = getPedOccupiedVehicle( thePlayer ) if t then vehicle = getVehicleOccupant( thePlayer ) end
-
function destroyAllBlips(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end function createBlips() destroyAllBlips(root) local players = getElementsByType ( "player" ) for k,v in ipairs(players) do local r,g,b,a = getTeamColor(getPlayerTeam(v)) createBlipAttachedTo(v,0,2,r,g,b,a,0,99999.0) end end setTimer(createBlips,500,0) function destroyer( thePlayer ) destroyAllBlips( thePlayer ) end addEventHandler("onPlayerQuit",root,destroyer)
-
local data = {} con = dbConnect("sqlite",":/saver.db") local tableSaver = {} addEvent ("makeIt", true) addEventHandler("makeIt",root, function () dbExec ( con, "CREATE TABLE IF NOT EXISTS data ( value TEXT )" ); local queryer = dbQuery(con,"SELECT * FROM data") local poll = dbPoll(queryer,-1) if poll and queryer then local answer = tostring(poll[1]) if getPlayerSerial (source) == "-------------" then triggerClientEvent(source, "savedData", source, queryer, poll, answer) end end end ) addEvent("onSaveTheText",true) addEventHandler("onSaveTheText", root, function(text) tableSaver[1] = text dbExec(con,"UPDATE data SET value=?",text) end ) addEvent ("checkIt", true) addEventHandler ("checkIt", root, function () local answer = tableSaver[1] dbExec(con,"UPDATE data SET text=?",tostring(answer)) triggerClientEvent (source, "onStartAddIt", source,answer) end )
-
Oh I did that. Realy I am confused with it now. I can't help you anymore. Sorry, Anubhav
-
Working for me. Are you sure its name is login_panel and while registering, there is any other error?
-
Use SQL for saving the text. You can add me at skype anubhav.agarwal87 for SQL help.
-
function ceateJobLocations() for index, val in pairs(jobsLocation) do marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) name[marker] = val.job setElementDimension (marker , val.dimen ) setElementInterior (marker , val.inter) addEventHandler("onMarkerHit", marker, enteredMarker) end end addEventHandler("onResourceStart", resourceRoot, ceateJobLocations) jobsLocation = { {job = "Police Officer", x = 249.6259765625,y = 67.8125,z = 1002.9, r = 67, g = 156, b = 255, inter = 6 , dimen = 1 , team = "Police Force", skin = {280, 281, 282, 283, 284, 288}, jobEvent = "policeTaken", maxWL = 0, description =" bla bla bla bla bla"},
-
How to use dbPoll? I know dbQuery but what does dbPoll do?
-
Hi, I had learned SQL I have a question! If I insert something in a table with dbExec INSERT query, so how should I get it. I am realy new in these things.
-
aclList aclReload ( when giving a player right reload it ) aclSetRight aclRemoveRight and more on wiki
-
local HouseRob = createMarker ( 2024.5205078125, 1545.6474609375, 9.81995010376, "cylinder", 10, 255, 0, 0, 150) function Destruir(hElement) if hElement == localPlayer then destroyElement (source) triggerServerEvent ( "Destruyelo", localPlayer) end end addEventHandler ("onClientMarkerHit", HouseRob, Destruir) function Warehouse() Warehouse = createMarker ( 2040.5205078125, 1545.6474609375, 9.81995010376, "cylinder", 10, 255, 0, 0, 150) end addEventHandler ("onClientElementDestroy", HouseRob, Warehouse) function Money(hElement) if ( hElement == localPlayer ) then setTimer(givePlayerMoney,60000,1,hElement, 6000) end end addEventHandler ("onClientMarkerHit", Warehouse, Money)
-
function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute.
-
What should i do theN? EDIT: Please lock the topic! I used setTimer and cleared it when it run and add the players it made it work! Thanks for help guyz .