-
Posts
589 -
Joined
-
Last visited
Everything posted by mjau
-
k ill do this and tirgger the save with a timer wich updates it every min then ill make sure not too many cars are lost on crash
-
It is not sqlite wich meaans setup a MYSQL you can do it with a webhost or use xammp then put the info between the "" tags is mysql.lua
-
reconnnect is no probelm cuz the data is on the vehicle i use getAccouuntName to get the name and then i make it loop trough all vehicles and a if check makes all the vehicles with element data equal to acc name pop up in my grid ... I just need a way to save the vehicle so it never dissaperas then the element data doesnt either Edit and waht you said would worked but look players are allowed to have unlimited amount of cars...
-
just drag the resources into your resources folder
-
Hi i have started creating a new gamemode and well when i was doing the vehicles system i stumbled over a problem when it was finsihed, it worked and stuff but the problem is: In the script i use createVehicle to create the vehicle player bought then i set the elemtndata on the vehicle to the players acc name but the problem is if my server crashes or any other thing wich can make the resource stop the vehicle i created dissapers, so does the element data wich means a player looses all his cars. how can i make the vehicle getting saved and the elementdata too on resource stop ? if u need code ill pm it
-
anyway as i get it your probelm is getting the image to show to killer only ? or what ?
-
Please stop tripleposting, be patient...
-
This i a mess you are mixing serverside and clientside functions....
-
but waht is wrong with it ? explain further, we cant help you fix a script when we have no clue whats wrong...
-
http://scratch.mit.edu/projects/arthurvader/1574961 Best game ever
-
Eh expalin further please and anyway i need to get the exact house that belongs to that pickup(if u want i can pm u my code ...)
-
Hi i got a small problem with a XML file if i want to get a specified line/house out of the code below how? im asking this cuz i wanna make so when a player hits the pikup for the house it shows price owner housename etc <houseData> <house markerPosX="-1302.248046875" markerPosY="-111.3232421875" markerPosZ="14.1484375" houseName="nab" owner="nil"></house> <house markerPosX="-1303.59375" markerPosY="-111.072265625" markerPosZ="14.1484375" houseName="blabla" owner="nil"></house> <house markerPosX="-1308.1611328125" markerPosY="-109.3642578125" markerPosZ="14.1484375" houseName="heytrololo" owner="nil"></house> <house markerPosX="-1307.861328125" markerPosY="-112.10546875" markerPosZ="14.1484375" houseName="blahhh" owner="nil"></house> <house markerPosX="-1305.9541015625" markerPosY="-114.6572265625" markerPosZ="14.1484375" houseName="cake:D" owner="nil"></house> </houseData> So if i hit thepickup created for the house named cake:D it shows its prices etc
-
function onPlayerTarget ( targetElem ) if getElementType ( targetElem ) == "object" then outputChatBox("someone touched an object!") end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget )
-
addEventHandler ( "onClientPlayerSelectGamemode", player, function ( gm ) if gm ~= "race" then return end --some gui t1 = setTimer ( triggerServerEvent, 12000, 1, "onPlayerRaceEnter", player ) addEventHandler ( "onClientKey", root, onPlayerClientKey ) end ) attrs = 0 function onPlayerClientKey( button, press ) if ( press and button == "F9" and attrs ~= 1) then killTimer ( t1 ) attrs = attrs + 1 --some gui stuff elseif ( press and button == "F9" and attrs == 1 ) then attrs = attrs + 1 --some gui stuff. elseif ( press and button == "Y" and attrs == 2 ) then triggerServerEvent ( "onPlayerRaceEnter", player ) --gui stuff elseif ( press and button == "N" and attrs == 2 ) then --gui stuff call ( getResourceFromName ( "npg_general" ), "onClientPlayerRedirectFromRace", player ) end end try this...
-
https://community.multitheftauto.com/index.php?p= ... &id=310026 This guy uploaded 3 versions of same script with accident, he didnt know how to update the old one I think he wants the old versions removed or merged with the 2.0.0 version
-
Well im kinda nab at this but when i built my computer i put 8 gb of ram in it to be able to run server with a bit of high memory load, anyway buy more ram or improve your codes...
-
there is no source since you didnt use an event handler and a function... you can put it inside a function and use a event for event parameters read the wiki
-
Well yeah thats my question i dobnt know anything easy to create with sql
-
there is a setting in the admin panel just select freeraom the settings then you will find it there
-
why this dont work says bad argument at create pickp line function reloadHouses() file = xmlLoadFile("XML/houseData.xml") for i,v in ipairs(xmlNodeGetChildren(file)) do posX = xmlNodeGetAttribute(file, "markerPosX") posY = xmlNodeGetAttribute(file, "markerPosY") posZ = xmlNodeGetAttribute(file, "markerPosZ") owner = xmlNodeGetAttribute(file, "owner") houseIcon = createPickup(posX, posY, posZ, 3, 1273, 1000) end end
-
What ? how do i create the pickup at the cordinates ? this doesent return x y and z pos ? im making a function to create a housepickup at every house saved in my xml file....
-
remove theese please https://community.multitheftauto.com/index.php?p= ... ls&id=3552 https://community.multitheftauto.com/index.php?p= ... ls&id=2625 tnx
