-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
lol, I never knew
-
ok,ok, I'll stop
-
Main_Page try this, Server-side: addEventHandler("onVehicleEnter",root,function(player,seat,jacked) if(player)and(seat==0)then acc = getAccountName(getPlayerAccount(player)) if(isObjectInACLGroup("user."..acc,aclGetGroup("Admin")))then setVehicleDamageProof(source,true) end end end)
-
There should be a setting for moving objects... Check the Options folder...
-
You could get the song meta instead of typing in the song name
-
here: Main_Page
-
I've edited it again, try it now
-
You could edit the player blips resource.
-
where's the .mp3?
-
I didn't see anything wrong but try this, Client: function clientSubmitLogin(button, state) if button == "left" and state == "up" then local username = guiGetText(loginEdit["Username"]) local password = guiGetText(loginEdit["Password"]) if username and password then triggerServerEvent("submitLogin",localPlayer, username, password) end end end addEventHandler("onClientGUIClick", loginButton["Main"], clientSubmitLogin, false) function clientSubmitRegister(button, state) if button == "left" and state == "up" then local username = guiGetText(registerEdit["Username"]) local password = guiGetText(registerEdit["Password"]) if username and password then triggerServerEvent("submitRegister",localPlayer, username, password) end end end addEventHandler("onClientGUIClick", registerButton["Main"], clientSubmitRegister, false)
-
You could use those functions and use the event handler onVehicleDamage or, if the admin goes in to the car, set it damage proofed setVehicleDamageProof
-
Sorry, I don't see anything wrong in the script, What's the name of the song?
-
I think it's automatically default if you don't set the handlings... but you could use: getOriginalHandling()
-
SGC:RPG Live Support Script(Tell me what you think)
Jaysds1 replied to Razerclaus's question in Client
That's true, Anyways, Razerclaus, this live support looks nice and I never even thought about this... I'm not going to give a rude feedback though, so here's what's up: The gui is not unique, but looks nice, If the code behind all of this actually works and sends the message to the staff or who ever, then I could say this is a Perfect example of a real live support. -
SQlite is another built-in MTA Database... It's used for Accounts... but I doubt vG uses it...
-
try this, Script: function repair1_Button (state) if state == "left" then if source == GUIEditor_Button[1] then local money = getElementData(localPlayer, "Money") local repair = getElementData(localPlayer, "Repair") if(money)then setElementData(localPlayer, "Money",money-50) end if(repair)then setElementData(localPlayer, "Repair",repair+1) end outputChatBox ("Du hast Dir ein Auto Repair gekauft!", 0, 255, 0 ) end end end addEventHandler("onClientGUIClick", guiRoot, repair1_Button,true)
-
np, if it still doesn't work, post the debugscript
-
ok, in your server folder(where mtaserver.exe is), there should be a file called "acl.xml", go in to that file and add this: name="resource.csm" /> between: name="MapEditor"> <? and ?>> If you need any more info, refer to the wiki: ACL.
-
sorry for going by the book but, this is off-topic... The date was: and the topic is useless now...even though Spanish4Life is appropriate but still, I think this should be locked or trashed or something...
-
Here's the code again in LUA Syntax: -- connection settings local hostname = "**HOST**" local username = "** USR **" local password = "**PASS**" local database = "**DB**" local port = 3306 -- global things. local MySQLConnection = nil local resultPool = { } local sqllog = false local countqueries = 0 -- connectToDatabase - Internal function, to spawn a DB connection function connectToDatabase(res) MySQLConnection = mysql_connect(hostname, username, password, database, port) if (not MySQLConnection) then if (res == getThisResource()) then cancelEvent(true, "Cannot connect to the database.") end return nil end return nil end Anyways, Did it output to the console: "Cannot connect to the database." ?
-
ok, did you add the resource CSM in the ACL for mapEditor? If not, add this to the mapeditor ACL: name="resource.csm" />
-
Replace that meta.xml code with this one: > type="map" version="1.0.0" name="LS Prison">> src="[0.3e]LS_Prison.map" dimension="0" /> > name="#minplayers" value="[ 0 ]">> name="#maxplayers" value="[ 128 ]">> name="#gravity" value="[ 0.008000 ]">> name="#weather" value="[ 0 ]">> name="#time" value="12:0">> name="#locked_time" value="[ false ]">> name="#waveheight" value="[ 0 ]">> name="#gamespeed" value="[ 1 ]">> >> And change your map name (your Los Santos Prison.map) to "[0.3e]LS_Prison.map". Tell me if it works after
-
That's true and ur welcome JokeR
-
np