did you just forget to copy it or did you remove the end of the function and the command handler? line 3 should be getAccountData (the player account should go there), you maybe need to use tonumber to turn the string which getAccountDataReturns to a number
for command handlers the player is not source but the first parameter of the function (in your case playerSource), if you however change it to use the appropriate event source will be fine. to make it work with what you currently have replace all "source"s with "playerSource"
addEvent("playerNotChatting", true)
addEventHandler("playerNotChatting", root,
function()
triggerClientEvent("updateChatList", root, source, false)
end
)
addEventHandler("onPlayerQuit", root,
function()
triggerClientEvent("updateChatList", root, source, false)
end
)
personally i don't see a reason not to give each function a name, the benefits of not doing so are minor
check if you did it correctly using the tool they provide: http://portforward.com/help/portcheck.htm needed ports are 22003 22005 (required to play) and 22126 (required to be displayed on the server browser) [port defaults]
you need to understand the difference between server and client side scripts, you are using a server event with client functions. What you need is onClientMarkerHit
Also when using useful functions in your script you need to put the useful functions code somewhere so your script can access it.
you can script it so everyone on your sever will see it while you have the resource started which contains it. however every player will have to download your custom textures when they connect to your server.
leave the ip field in the mtaserver.conf blank and look up your ip on a site like http://whatismyipaddress.com/ if you want a static ip you should simply ask google for a tutorial on how to do that, there are plenty of them
Yes, but you'll have to script that. https://wiki.multitheftauto.com/wiki/Res ... otemanager will help you, but you'll also need to find the relevant code in race to replace it with yours
please try to use the forums search next time, as you can see here there are tons of topics about this already: https://forum.multitheftauto.com/search.php
the solution is to download this: https://community.multitheftauto.com/data.zip and replace the files you find in there in your gta san andreas -> data folder with the ones in this .zip
evil geniz achieved this by attaching an object to the player so the camera gets moved very close to the head of cj, then simply set the ped alpha to 0. haven't seen it done better than that yet. at least for combat this works quite well.