-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
@Resmurf, this is quite an old post, I don't think it's up to date.
-
Nah, you can use it as it's a public image. But at least you could ask for it, if you have seen it, and you thought it's cool.
-
I wanted to help ya @Lord Henry, because it would be easier for us, to answer your question, if you could write down your OWN problem, and not refer to other's. And btw, yeah, you can use MY signature, which I created for MYSELF, not for other's. Thanks for asking for it mate.
-
Is 'source' a vehicle element?
-
You arent having the same problem as @Ride1234 was having. It's a 2011 post, and this question got answered. You may bump an old post, if it was created by you, or you are having the same issue. But because this issue is already closed, you may create a new one, as YOUR support post, and maybe we could answer your question aswell, without having to read back into the 2011 comments, and functions.
-
Its a server sided script, it would work totally fine, you should replace the 'localPlayer' in the getPedOccupiedVehicle with the player element on the server sided script.
-
@Lord Henry, dont bump old posts, create a new one...
-
Thats the code you need to call the money from that table. local pVehicle = getPedOccupiedVehicle(localPlayer) local vehModel = getElementModel(pVehicle) local pMoney = moneyTable[vehModel] outputChatBox("That car is $" .. pMoney)
-
It works just fine for me mate. ped = createPed(135, 361.39, 171.45, 1025.79, 180) setElementDimension(ped, 5) setElementInterior(ped, 3) function followPed() outputChatBox(tostring(isElement(ped))) local position = {getElementPosition(localPlayer)} local pedPosition = {getElementPosition(ped)} outputChatBox("X: " .. position[1] .. " Y: " .. position[2] .. " Z: " .. position[3]) outputChatBox("PedX: " .. pedPosition[1] .. " PedY: " .. pedPosition[2] .. " PedZ: " .. pedPosition[3]) setCameraMatrix(position[1], position[2], position[3], pedPosition[1], pedPosition[2], pedPosition[3]) end addEventHandler("onClientPreRender", root, followPed)
-
ped = createPed(135, 361.39, 171.45, 1025.79, 180) setElementDimension(ped, 5) setElementInterior(ped, 3) function followPed() outputChatBox(tostring(isElement(ped)) local position = {getElementPosition(localPlayer)} local pedPosition = {getElementPosition(ped)} outputChatBox("X: " .. position[1] .. " Y: " .. position[2] .. " Z: " .. position[3]) outputChatBox("PedX: " .. pedPosition[1] .. " PedY: " .. pedPosition[2] .. " PedZ: " .. pedPosition[3]) --setCameraMatrix(position[1], position[2], position[3], pedPosition[1], pedPosition[2], pedPosition[3]) end addEventHandler("onClientPreRender", followPed) Does this output everything?
-
What does this output? ped = createPed(135, 361.39, 171.45, 1025.79, 180) setElementDimension(ped, 5) setElementInterior(ped, 3) function followPed() outputChatBox(tostring(isElement(ped)) --local position = {getElementPosition(localPlayer)} --local pedPosition = {getElementPosition(ped)} --setCameraMatrix(position[1], position[2], position[3], pedPosition[1], pedPosition[2], pedPosition[3]) end addEventHandler("onClientPreRender", followPed)
-
@50cent, I already answered your question in the Hungarian Facebook group. Go and check it out.
-
Do you have an element called 'ped'?
-
You can just get the money by calling the table with the index of the car's id. moneyTable[carID]
-
Yep, just like that. I mean, if you want the camera to be in an exact pos, you can just change local position = {getElementPosition(localPlayer)} to a fix one, and then it would be a static cam which would follow a ped. If you need further help, feel free to ask.
-
You have to use a timer or an event which is called every frame (onClientPreRender is what I would use). If you want have a fix position for the cam pos, you can just get the player's pos every time when the functions is called, and then set the camera matrix with the fix pos and the player's pos.
-
You can use a table to register new names. local nameTable = { -- [CARID] = "NEW NAME" [411] = "New Infernus" }
-
Jesus christ, that first code is killing my eyes. @DNL291, did you test your script?
-
Do you want to separate the chat for every country?
-
Usually we won't make the whole script for you, we help with errors, and give instructions. Try to do it yourself, and if you happen to be stuck, ask here.