[Release] Freeroam 2 by Kanersps

@LoPan

Do note you probaly are in this regard? I just set it up again on a server and it works perfectly.

i said when i do edit the mysql it allows me to just walk around but doesnt get reid of the welcome screen… is it something to do with the permissions ?

@LoPan No? Everyone can walk around once registered/logged in. Although if the screen is there you didn’t login, which means you messed something else up.

no iam saying that once the first time you register right ? you need to make the user i done that then i go and edit the mysql admin 3 for super admin then click done. when i restart the server it acts as if the user isnt there anymore and if you do /login password it says invaild command

@LoPan @kanersps Literally the ONLY thing I need is admins. I’m not a bloody retard, but is it so hard for you to assist me by briefly saying how to edit a table value? I like your mods, 10/10, but as a “customer” I will have to speak my mind about the lack of your support. You might’ve written on the first page of the Freeroam gamemode “Support is limited” but still I think we deserve somewhat of a support from you since you are the creator of this stuff. You developed it, so you should know best how it works. Do we ask too much if we ask for some assistance?

1 Like

Hello ,

Your freeroam is realy good!! Thank you…
But I have just one problème, I dont found the marker Yellow , black or blue? Can you help me please?

@cedricalpatch They have to be made. You can make them like this:

  • Stand where you want a company.
  • Type: /re create [company-name] [price]

To make a robbable place

  • Stand where you want this
  • Type /rob create [name] [jackpot]
4 Likes

@kanersps Okay I finally got it to work, but not with your help. It’s nice that you make this awesome stuff, but really, I dislike your way of communicating with your “customers”… Anyone that needs help adding themselves as admin, using this mod, and using PHPMyAdmin, can ask me for assistance, since it’s really not that hard at all.

1 Like

@-Sirion- Do note that @LoPan did something wrong aswell. It took literally 2 seconds to change him to admin.

@kanersps Ok thank you… I check that and lets you know!

Hello,
Sorry but I having an issue mysql server is setup it connects but soon as a player goes into the server they can not register is does not but spam the console https://imgur.com/a/qElfy

Thank you for reading and hope you can help me.
Healthstr

Good shit man @kanersps. Quick question on spawn locations and player models. I’ve been digging through the scripts of ‘freeroam’ and ‘fivem-map-skater’, I’ve played my own spawn locations which are being overridden when I die. I see my model teleported to custom locs, but one of the lua’s are teleporting me to a random location

Also, I’ve replaced all the player hex model and same thing, only LEO/Military models.

I see that it was all in customizer.lua which client size is coded, but server side requires total rewrite.

tl;dr is customizer.lua in /server/ required I’m assuming for player models. Which .lua is controlling teleportation points?

EDIT: I found the personal vehicle list, I was wondering why I couldn’t get the basic vehicles. The predefined list in personalvehicle.lua and only 3 vehicles listed :), now I know where to look now.

1 Like

Only because someone asked…
making-myself-admin-through-mysql

@exalented said in [Release] Freeroam 2 by Kanersps:

Only because someone asked…
making-myself-admin-through-mysql

Phpmyadmin won’t provide edit function as some of the tables provided don’t have a unique identifier, we have released a updated\edited mysql database that has unique identifiers for mysql to resolve this issue for our clients (Requires reinstall and drop of tables), if your not a client of ours and use phpmyadmin, as a friendly courtesy\advice, you will need to set a unique identifier in the table before phpmyadmin will let you edit it.

Hope this helps

1 Like

@kanersps i just did a clean install and added your new freeroam script.
after that i changed the mysql credentials.
However when i start the server i get this error:

2016-12-21 23:02:48.2254|ERROR|CitizenMP.Server|Error creating script environment for resource freeroam: Object reference not set to an instance of an object
2016-12-21 23:02:48.2329|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaChunk.Run(LuaTable env,Object[] callArgs)
2016-12-21 23:02:48.2341|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaGlobalPortable.DoChunk(LuaChunk chunk,Object[] callArgs)
2016-12-21 23:02:48.2349|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.DoInitFile(Boolean preParse)

then when i try to register i get this error


2016-12-21 23:05:22.7838|ERROR|CitizenMP.Server|Error executing event handler for event chatMessage in resource freeroam: Exception has been thrown by the target of an invocation.
2016-12-21 23:05:22.7838|ERROR|CitizenMP.Server| at [U] System.Reflection.MonoMethod.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object[] parameters,CultureInfo culture)
2016-12-21 23:05:22.7848|ERROR|CitizenMP.Server| at [U] System.Reflection.MethodBase.Invoke(Object obj,Object[] parameters)
2016-12-21 23:05:22.7848|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvokeImpl(Object[] args)
2016-12-21 23:05:22.7848|ERROR|CitizenMP.Server| at [U] System.MulticastDelegate.DynamicInvokeImpl(Object[] args)
2016-12-21 23:05:22.7848|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvoke(Object[] args)
2016-12-21 23:05:22.7857|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.TriggerEvent(String eventName,String argsSerialized,Int32 source)
2016-12-21 23:05:22.7857|ERROR|CitizenMP.Server|Inner exception: Can not call nil value.

I’m getting these errors:

When I start the server:

When I type any command:

and when I type anything, it doesn’t show in the chat, dunno why, I’ve reinstaled the server files and nothing happens.

Please read a few posts back for the fix. Do note that the error easily states what’s wrong as well. It couldn’t find the dll required because it tries to find it in the tdm folder. Change this in register.lua

It seems the error happens when editing mysql, if your wanna edit any value follow these instructions:
(I’m using mysql Workbench 6.3 CE)

1- Click on the edit tab and click preferences, go to SQL Editor and disable the option:

“Safe Updates” Forbid UPDATEs and DELETEs with no key in WHERE clause or no LIMIT clause. Requires a reconnection.

It’s the last option, after disabled, reconnect.

2- After reconnecting, right mouse button click on gta5_gamemode_freeroam Schema, and select set as Default Schema.

3- For adding admin (note that you have already registered in game), type this command as @exalented said:

UPDATE users SET admin=6 WHERE username="[USERNAME]"

replace the [USERNAME] with the username you use in game, it should look like this:

UPDATE users SET admin=6 WHERE username=“SpongeBob”

4- Execute the command and it’s done.

it worked for me
hope it helps you all :slight_smile:

2 Likes

i don’t understand this part:

" You require to run this sql on your mysql server."

No idea what this means or how to run the sql.

I installed everything else fine but /register doesn’t work it just spams the console log.

Because you require a MySQL server. You can google it.