-
Posts
730 -
Joined
-
Last visited
-
Days Won
2
Everything posted by koragg
-
All looks fine. You sure the group is "VIP" and not "ViP" or something?
-
@DNL291 I'm pretty sure that it can save numbers as well. I'm using account data to save coins and points at my server and don't have to use "tostring" every time i save the new value (it's a number).
-
At line 3 it should be getAccountName (getPlayerAccount (v)) instead of getPlayerName (v)
-
addEvent( "fini:~emMove", true ) addEventHandler( "fini:~emMove", getLocalPlayer(), function( ) if wInventory then guiSetEnabled( wInventory, true ) end guiSetVisible( wWait, false ) end )
-
There is: either learn to fix it by yourself or get some friend to work on your server with you. You won't get any help regarding leaked scripts here, sorry.
-
I have OWL Gaming's and a bunch of other server's resources as well. If we can fix it by myself, fine. If not, we can't ask for help here because they're leaked (not officially released to us by the creators).
-
I changed it from '1' to '0' and restarted the server but nothing changed... it's still asking for username and password every time i visit the link.
-
Oh in that case, no. It's not a php script that I use, just a simple iframe in a html.
-
For future warnings like these: "boolean" means that it's not sure if something is there. So in pretty much all cases a simple "if" check fixes it. Example: local veh = getPedOccupiedVehicle(player) setVehicleNitroLevel(veh, 1.0) [This will give a boolean error^] local veh = getPedOccupiedVehicle(player) if veh then setVehicleNitroLevel(veh, 1.0) end [This won't give you any errors/warnings] PS: Sometimes even if you see a boolean warning the script may work normal. Still it's better to fix it mainly because it's annoying but also because it slows down your server like any other error or warning.
-
If i were you I'd do the two states in two separate functions and then use these things when needed: https://wiki.multitheftauto.com/wiki/AddEventHandler https://wiki.multitheftauto.com/wiki/RemoveEventHandler So when you need it to be "open" you add the event handler for the open function. And when you want it to be "closed" you remove the event handler of the "open" function (this removes text) and you'll add the event handler for the "closed" function. And vice versa.
-
Um, I searched for this and there is nothing like it anywhere in the 'resources' folder according to Notepad++
-
@jbeta you made the scoreboard, help please @ccw anyone
-
Try using this: https://wiki.multitheftauto.com/wiki/SetBlipVisibleDistance
-
@Charan what @pa3ck gave you is a pretty neat way to do what you wanna do. Here goes: local loginTimer = setTimer(function() if not isTransferBoxActive() then addEventHandler("onClientRender", root, "myLoginPanel") killTimer(loginTimer) end end, 2000, 0) A timer is set which checks if the player sees the download box at the bottom center of their screen (that means that they're downloading something). And if the download box is visible nothing happens. But the moment when the player has downloaded everything needed the download box will go away, right? Well the next time this timer runs (which is 2 seconds after the last time it checked things) it will see that the download box is not there. And since there is a specific condition if not isTransferBoxActive() then when the download box is gone the code inside the timer function will execute. And all it does is to make your login panel visible to the player and to stop checking if the download is complete because there's no point anymore: if the code executes it means that the player has already downloaded the required stuff. You should put this resource first in the mtaserver.conf to make it load before all other resources (yes, that works too - easier than setting priority in every resource's meta.xml in my opinion). Also obviously you'll need to make it into a client-side script since it's going to affect each player's download box independently.
-
I fixed it the following way: In the scoreboard.js file there is var columnName = columns[i].friendlyName.htmlEntities(); After a few searches around the net I figured out how to fix it by using the javascript replace method from the function "htmlEntities" and made another function called "htmlEntitiesFix" which is literally the same only with an extra .replace(/>/g,'>').replace(/ /,'_') at the end. This way all spaces in the column name (note: not in the rows, just columns) get replaced by an underscore "_". So now in the .css I easily do this td.player#Player_State { color: #FFFFFF; width: 4%; } and there's no problems at all. Yeah, sure there is an underscore but that's seen only in the web scoreboard and only in 3 of the column names so it's no big deal at all. But I still cannot figure out why it keeps asking everybody for their in-game username and password when they visit the link to view the scoreboard: http://www.classicracing.tk/scoreboard.html At my race clan's site (http://www.fullysik.net) the scoreboard is embedded into the home page the same way (I asked my boss to give me the SiK site's files ) so I don't think it's a script problem. Maybe some setting somewhere? That's the last and actually the biggest problem that I have had since the start with the web scoreboard. PS: Also in webadmin all resources are in the "Everyone" under "Groups" but t still wants authentication (SiK's owner told me that this can be a problem if it isn't in that group).
-
So I managed to fix the column names thing today but still need help with two things: 1. How to remove that login request every time I visit the link? 2. How to make the following work (it's in CSS): For example I have this: td.player#Name { color: #FFFFFF; width: 15%; } and that makes the "Name" column be 15% wide and it's content to be white. Now I wanna know how to do the same but for this column: td.player#Player State { color: #FFFFFF; width: 6%; } The problem is that the space after "Player" and before "State" kind of bugs the CSS and it doesn't work. Is there any 'white-space symbol' specific for CSS or any other way to make it work?
-
This is what I get every time:
-
Sadly that's not the case. Notepad++ gives 0 results
-
I tried to add my server's scoreboard to my website using the webadmin resource. But it asks every player who visits the link (http://5.196.159.12:22095/scoreboard/) to login with their in-game username and password in order to see the scoreboard. How can I remove that login restriction so that anyone can view the scoreboard by going to that link? And another, for now, less important question is: How to change the width of the columns and show their friendlyName instead of columnName?
-
The basic idea is the same. Use this as an example and edit it to be with the maths you showed in screen shot instead of the random letters: https://www.mediafire.com/download/k5cyc67jocjtdxt
-
@Pirulax we didn't make whole functions thus there's no need for adding the event handler. And I think everybody who's reading this topic would know that in order to draw something on the screen they'd need to use onClientRender.
-
Sorry, the above site only works in my country Here are the videos: